Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #524519

    How can i configure all the category pages and all the tag pages to display 2 columns instead of 3 columns with blog posts? (In full page width) And i would like to see the link “Read more” in every post at the category and tag page.
    I’ve added the following code:

    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;
    }
    add_filter('avf_blog_style','avia_change_tag_blog_layout', 10, 2); 
    function avia_change_tag_blog_layout($layout, $context){
    if($context == 'tag') $layout = 'blog-grid';
    return $layout;
    }

    I’m using the “advance layout editor to build your own blog layouts” option. These are the 2 examples/pages (category and tag page) where i would like to see 2 columns instead of 3 columns including the “read more” link: http://goo.gl/cSx0dL and http://goo.gl/qJOKtZ. And here is an example of the default blog page wich is/can be set to 2 columns in full page width including the “read more” link/button: http://goo.gl/TfLoDX

    • This topic was modified 8 years, 9 months ago by Dutchman.
    #525344

    Hi Dutchman!

    Thank you for using Enfold.

    You have to modify the archive.php file. Look for this code around lin 53:

    'columns' => 3,
    

    Adjust the value.

    Cheers!
    Ismael

    #525761

    Thanks Ismael!! Modified tag.php and archive.php and solved the issue!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to adjust Blog posts grid 3 column to 2 column layout for category and tag?’ is closed to new replies.