- This topic has 4 replies, 2 voices, and was last updated 5 years, 5 months ago by .
Excerpt length in Integral Lite
You must be logged in to reply to this topic.
Dear support,
I’ve tried to no avail to change the post Excerpt length, both by editing the theme functions.php and by using the plugin Advanced Excerpts. It’s still stubbornly stuck on 20 words.
have you locked this on purpose, or am I’m doing something wrong?
Thanks in advance
Eric
Hello Eric,
We have not prevented you from changing this.
Can you share the code you used in the functions.php file so we can have a look?
Thanks Hans for your prompt reply.
I used this piece of code in the theme’s functions.php file
dd_filter( ‘excerpt_length’, function($length) {
return 40;
} );
but the number of words is still 20.
Hello Eric,
Try the code found on this page instead,
https://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length
Let me know if that doesn’t work.
You must be logged in to reply to this topic.