Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #359247


    I found this advice here how to change the excerpt of blog posts:

    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,


    That works fine for me, thank you Isamel!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Longer excerpts for blog page’ is closed to new replies.