Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #394662

    Hello,
    I would like to set the format of my category archive pages to match the main blog layout page. Currently I have “Use the advanced layout editor to build your own blog layout” selected under Blog Style in Theme Options. However, the formatting doesn’t carry over for the Category Archive pages. The Current archive page shows the full content, rather than just the excerpt. Can I edit through the backend? Wondering which PHP loop file links to the archives page.
    Thanks!

    #394967

    Hi kristenangel!

    Thank you for using Enfold.

    There’s an available filter to change the default blog style of archive pages. Please refer to this link: http://kriesi.at/documentation/enfold/change-archive-categorytag-blog-style/

    Cheers!
    Ismael

    #458670

    This advice is not very useful. I want my category page to look like the demo. This doesnt not explain or achieve it. I want the picture first, then the title/meta beneath it with a read more link.

    When I follow your direction and the link it tells me look into archive. However after much research this information is wrong because a change must have happend since then. When I look into archive everything about the layout seems to be inside:

    echo "<div class='entry-content-wrapper'>".$blog->html()."</div>";

    Where is the actual page/file to edit the HTML layout?

    I want the title etc.. beneath picture like demo with read more link..

    How do we achieve this?

    • This reply was modified 9 years, 6 months ago by Vicken.
    #459206

    Hi!

    The documentation doesn’t say anything about the “archive.php”, if that’s what you mean by “archive”. You need to add the snippet in the functions.php file:

    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'single-big';
    return $layout;
    }

    If you want to change the category page to blog grid style, use this:

    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'blog-grid';
    return $layout;
    }

    If you want the blog style of the demo, use the first snippet.

    Best regards,
    Ismael

    #487388

    Hi Ismael – tackling this issue again. While the page you linked to will modify the look, I still only want the excerpt to appear on the archive pages, rather than the full post. An example would be the Enfold category archive for Science: http://kriesi.at/themes/enfold/category/science/ – but only the first two posts. The third post is too long. I also need the title (i.e. “Archive for category: Science”) to appear.

    I’ve imported an old blog with hundreds of pages, so ideally I would like to call the excerpt, rather than go in to each post and add a Read More tag manually. Is it possible to only show an excerpt on the category archives?

    #488532

    Hey!

    Use this plugin to control the excerpt on archive or category pages: https://wordpress.org/plugins/advanced-excerpt/

    Regards,
    Ismael

    #504438

    Thanks, the plugin works great for Excerpts.

    Another issue presents itself regarding the Blog layout and the Archives Layout. As stated above, I am using “Use the advanced layout editor to build your own blog layout” to ensure my breadcrumbs are accurate, etc. Because I selected this layout in the Enfold options, I am unable to show a thumbnail next to the headline on Category Archive pages.

    Can I turn off the automatic formatting for the Archives? I’m just looking to show post thumbnails on Archive pages (like this http://kriesi.at/themes/enfold/blog/blog-single-small/), without changing the layout of my main News and Events page.

    #504472

    Hey!

    Add this in the functions.php file:

    add_filter('avf_blog_style','avia_change_category_blog_layout', 10, 2); 
    function avia_change_category_blog_layout($layout, $context){
    if($context == 'archive') $layout = 'single-small';
    return $layout;
    }

    It will set the blog style of the category pages to single author, small preview style.

    Best regards,
    Ismael

    #504898

    You guys are great. Thank You! Works perfectly.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Category archive page: change layout to show excerpt’ is closed to new replies.