Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #914491

    Hi,

    I am using enfold 4.2.3 on wordpress 4.9.4.

    On the home page I am using the post slider:

    [av_postslider link='category,8,59,22,20,4,71,91,1' wc_prod_visible='' prod_order_by='' prod_order='' columns='2' items='16' offset='0' contents='excerpt' preview_mode='custom' image_size='no scaling' autoplay='yes' interval='15']

    I am displaying the excerpt of the posts. I marked the except with the <!–more–> tag. But strange enough this only works for one post, but not for other posts, where I am using the read-more-tag.

    How can I achieve, that the excerpt is displayed for each post?

    Thanks alot
    Cornelius

    #914711

    Hey cornelinux,

    Thank you for using Enfold.

    The theme automatically strips the content or excerpt in a grid layout or post slider, that’s why the “more” tag is not working. If you want, you can increase the length of the excerpt.

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

    Best regards,
    Ismael

    #914750

    Hi Ismael,

    thanks a lot for the quick response.
    Where do you recommend to add this snippet?
    As script somewhere in the footer?

    The other thing is, that actually one blog post (the right one) displays the complete abstract till the <!–more–> tag while the left one does not.

    Read-More Tag

    Do you have any idea how this could have happened?
    Thanks a lot
    Cornelius

    • This reply was modified 6 years, 9 months ago by cornelinux.
    #914757

    I found it. Actually I needed to view the excerpt and edit the excerpt. Enfold will display either the excerpt of the post or the first X characters.

    See http://www.wpbeginner.com/plugins/how-to-customize-wordpress-excerpts-no-coding-required/

    #914852

    Hi,

    Great, glad you got it working and thanks for sharing :-)

    Best regards,
    Rikard

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