Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1305232

    Hello,
    we are using enfold at https://www.biteno.com/ . We recently became aware of tha fact that we have a lot of duplicate content on our website. This duplicate content seems to arise from tag and archive pages where the whole content of older articles is show in full instead of a short excerpt.

    My question is:
    where and how can I modify the archive and tag pages so that they only show an excerpt instead of the full content of older posts?

    Thanks for your feedback and help
    best regards
    Matthias

    #1305482

    Hey Matthias,
    Thank you for your patience, the post style of the archive pages is controlled by the Blog Layout option in the theme settings, you probably have the option set to Use the advance layout editor to build your own blog layout (simply edit the page you have chosen in Enfold->Theme Options as a blog page) as this is typically the default.
    2021-06-13_173830.jpg
    You could choose List Layout – Excerpt (Title, meta information and excerpt only)
    But this may also change your blog page depending on how you have it set up, so you could use this code to target only the archive pages:

    
    add_filter('avf_blog_style','avia_change_archive_blog_layout', 10, 2); 
    function avia_change_archive_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'bloglist-excerpt';
    return $layout;
    }

    This code is to be added at the end of your functions.php file in Appearance > Editor.
    The options for $layout are:
    multi-big
    single-small
    single-big
    blog-grid
    bloglist-excerpt
    bloglist-simple
    bloglist-compact

    You can try each one to find the one you like.

    Best regards,
    Mike

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