Hi,
Could you please explain how to change the length of Enfold Latest News widget excerpt ?
I tried to add the following to functions.php but it didn’t work:
add_filter(‘avf_postgrid_excerpt_length’,’avia_change_excerpt_length’,10,1);
function avia_change_excerpt_length()
{
return 125;
}
Many thanks,
Catherine
Hey CatherineCBrand!
Please add following code to Functions.php file in Appearance > Editor
function custom_excerpt_length( $length ) {
return 30;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Best regards,
Yigit
Hi Yigit,
Thanks for your reply! It works well!
Is there a way I can make the excerpt appear if the blog post layout is built with Avia Layout Builder, instead of the default editor?
Best regards,
Catherine
Hi,
You will have to add the excerpt manually to the excerpt field when using the builder for posts. If you can’t see the the excerpt field then please click Screen Option in the top right hand corner of the screen and select to show it there.
Thanks,
Rikard
Great, thanks for your help!
Catherine