Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #567120

    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

    #567170

    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

    #567269

    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

    #567617

    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

    #571191

    Great, thanks for your help!

    Catherine

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Enfold – change latest news excerpt lenght’ is closed to new replies.