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

    Hi support,

    Regarding this post – https://kriesi.at/support/topic/blog-excerpt-not-displayed/ – which I got working on my website, then I would like to adjust the lenght of the excerpts.

    Where can I do that?

    Thanks :-)

    /OKEIwebbureau

    #1083825

    Hey,

    Please add following code to bottom of functions.php file of your child theme – https://kriesi.at/documentation/enfold/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 :)

    Regards,
    Yigit

    #1083976

    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 :-)

    /OKEIwebburreau

    #1084144

    Hi,

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

    Best regards,
    Yigit

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

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