- February 7, 2018 at 7:31 AM #2420YukariParticipant
Can I change the number of characters or number of lines on excerpt from articles, index page.(div name is “entry-content”)
should i change PHP file?
what file and where should i change?now it shows around 18 characters.
i want to show about 3lines or more 50 caracters.February 7, 2018 at 11:23 AM #2432Rabindra TharuParticipant
Well, this feature is available in our premium version of the theme.
Please feel free to implement in any theme but we suggest to make a child theme and do it.
Follow this article :- https://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length
Thanks!February 7, 2018 at 4:21 PM #2450YukariParticipant
I changed the below file
$content = wp_trim_words( get_the_excerpt(), 18, ‘…’ );
echo ‘<p>’.wp_kses_post( $content ).'</p>’;
I could change the number of characters for 90 caracters.February 8, 2018 at 1:39 AM #2456
- You must be logged in to reply to this topic.