Tagged: 

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

    Hi,
    how can I increase the excerpt lenght in the blog fullwidth masonry?
    thanks

    #184178

    Hey cmaifre!

    You can use the “excerpt” field on the post editor page to insert a custom excerpt text or use following code to change the length of the generated excerpt:

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

    Insert the code at the bottom of functions.php and replace 100 with any other custom value. Kriesi uses an excerpt length of 60 by default.

    Cheers!
    Peter

    #184202

    I have the same question, but for the blog slider shortcode. How can I alter excerpt length there?

    #184996

    Hi @Easy123!

    Try with this code:

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

    Cheers!
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘excerpt lenght’ is closed to new replies.