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

    Hi! I would like to change the excerpt length of both the Masonry blog and regular blog layout… can you help? thanks!
    I tried adding
    function custom_excerpt_length( $length ) {
    return 20;
    }
    add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

    to no avail.

    #248877

    I too was searching for a way to change the excerpt length on the Masonry blog.. Probably it is a really simple change of code again :P

    #249137

    Hi!

    Thank you for using the theme!

    You can add this on functions.php, at the bottom:

    add_filter('avf_masonry_excerpt_length','avia_change_masonry_excerpt_length', 10, 1);
    function avia_change_masonry_excerpt_length($length)
    {
       $length = 100;
       return $length;
    }

    Change the $length value to something else. Default is 60. You also use the <!–more–> tag or specify the excerpt on Screen Options > Excerpt metabox.

    Regards,
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.