Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #1083819

    Hi support,

    Regarding this post – – which I got working on my website, then I would like to adjust the lenght of the excerpts.

    Where can I do that?

    Thanks :-)




    Please add following code to bottom of functions.php file of your child theme –

    add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
    function avia_change_postgrid_excerpt_length($length)
       $length = 100;
       return $length;

    and adjust the value, “100” as needed :)



    Hi Yigit,

    It didn’t work for me, but you got me on the right track….so I found this on the internet:

    add_filter( ‘excerpt_length’, function($length) {
    return 100;
    } );

    …which I placed at the bottom of the functions.php.

    And it works :-)

    Thanks :-)




    Glad you figured it out and thanks for sharing your solution! Let us know if you have any other questions or issues :)

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Lenght of excerpts’ is closed to new replies.