Tagged: Avia Layout Architect, Blog, excerpt, length, page builder, posts
Hi,
I found this advice here how to change the excerpt of blog posts:
https://kriesi.at/support/topic/how-to-increase-lenght-of-excerpt/
But this has simply no effect in my case (site is under construction!).
I have created a page using the AviaLayoutArchitect and the “blog posts” element:
But the excerpt length does not change at all, when I add this to the functions.php; yes, I have added a long enough post text for it and the posts does not have an own custom excerpt defined.
add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
function avia_change_postgrid_excerpt_length($length)
{
$length = 300;
return $length;
}
Any idea please? Thanks!
Hey COLORIT!
Thank you for using Enfold.
Use this on functions.php:
function avia_new_excerpt_length( $length ) {
return 300;
}
add_filter( 'excerpt_length', 'avia_new_excerpt_length' );
Best regards,
Ismael
That works fine for me, thank you Isamel!