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

    Hi, I tried adding this to function.php to increase the characters and show the read more button:

    add_filter(‘avf_masonry_excerpt_length’,’avia_change_masonry_excerpt_length’, 10, 1);
    function avia_change_masonry_excerpt_length($length)
    {
    return 170;
    }

    add_filter(‘avf_masonry_loop_prepare’,’avia_change_default_link’, 10, 2);
    function avia_change_default_link($loop, $entries)
    {
    foreach($entries->posts as $key => $entry)
    {
    if($entry->post_type == “post”)
    {
    $more = “<br /><span class=’masonry-more-link-arrow’>”.__(‘Read more’,’avia_framework’).”</span>”;
    $loop[‘content’] = avia_backend_truncate($entry->post_content, apply_filters( ‘avf_masonry_excerpt_length’ , 60) , apply_filters( ‘avf_masonry_excerpt_delimiter’ , ” “), “…”, true, ”) . $more;
    }
    }

    return $loop;
    }

    But as you can see all the descriptions are the same, How can I fix this?

    regards

    #567281

    Hey!

    Did you manage to get it working? here’s what i see – http://screencast.com/t/ngABnVvyT

    Cheers!
    Josue

    #567345

    Yes, I finaly solved. Thanks a lot!
    Regards

    #567366

    Hi!

    We are glad you got that short out!
    Btw, If you have a moment, I would very much appreciate if you could quickly rate the Enfold to themeforest, which wiII heIp us keep the deveIopment up!

    Please do not hesitate to contact us, if you do need anything else.

    Best regards,
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Mansory blog read more’ is closed to new replies.