Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1288986

    I need to adjust the excerpt length for post slider, blog posts and magazine that I am using in a page.

    How?

    Thanks.

    #1289456

    Hey peterolle,

    Please have a look at the following thread:
    https://kriesi.at/support/topic/custom-excerpt-length-for-posts-from-avia-blog-element/#post-860701

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1289483

    Thank you Victoria.

    Please let me know how I define:

    post slider 90
    blog posts 130
    magazine 60

    Using that code.

    Thanks.

    #1290417

    Hi peterolle,

    The Blog Posts that uses Grid is basically using Post Slider, so they use the same hook:

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

    For Magazines, you can use this code:

    function enfold_magazine_excerpt_length($length) {
      $length = 60;
      return $length;
    }
    
    add_filter('avf_magazine_excerpt_length','enfold_magazine_excerpt_length', 10, 1);

    Hope this helps.

    Best regards,
    Nikko

    #1290562

    Thank you Nikko.

    Is there a way to have different length in blog posts and post slider?

    #1290819

    Hi peterolle,

    Unfortunately, there’s no way to have different length for blogposts (grid) and postslider.
    You can see this in blog.php and postslider.php.

    Best regards,
    Nikko

    #1290820

    Thank you Nikko, you can mark this as solved.

    #1290825

    Hi peterolle,

    You’re welcome :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Excerpt length for post slider, blog posts and magazine’ is closed to new replies.