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

    Dear Team,
    i would like to completely remove the sidebar for certain product categories so that I can use the entire page width for the products.

    I can only turn of the sidebar in the Enfold settings, but that doesn’t help me. Then the sidebar is not displayed, but the page width is still as narrow.

    How can I completely remove the sidebar for certain product categories so that I can use the entire width for products/content?

    I also don’t want to completely remove the sidebar everywhere. It should really only be for certain product categories.

    I would be very happy about help.

    My Site: https://www.sarisgarage.shop/palettenmoebel/

    Best regards
    Christian

    #1424424

    Hey Chrisxx1982,

    Thank you for the inquiry.

    You can use the avia_layout_filter filter and the is_product_category function to adjust the layout of a specific product category page.

    add_filter('avia_layout_filter', 'avia_layout_filter_mod', 10, 2);
    function avia_layout_filter_mod($layout, $post_id) {
        if( is_archive() && is_product_category('graphics') ){
            $layout['current'] = $layout['fullsize'];
            $layout['current']['main'] = 'fullsize';
        }
    
        return $layout;
    }
    

    The filter above will disable the sidebar in the “graphics” category page and set it to fullwidth.

    Best regards,
    Ismael

    #1424438

    Hi Ismael,
    thanks so much.

    I’ll try it out, but it looks pretty good.

    Thank you! :)

    Best regards
    Christian

    #1424594

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1425809

    Hi,

    I have now installed it and it works great, thank you very much.

    But now I have the problem with the columns :)

    Is there a way that I can change the number of columns per product category? Should I start a new thread about this or is this not something you can solve here at Enfold?

    Unfortunately, the number of columns can only be changed globally under Woocommerce Settings -> Products. It is currently set to 3 and I would like to change it to 4 for some product categories where I now have more space, but of course not always globally.

    Thanks in advance.

    Best regards
    Christian

    #1425860

    Hi,
    I just wanted to adjust the posts and remove the sidebar so that I could use the entire width. Sorry, that is not possible.

    How can I use the entire breadth just like with the product categories?

    Here is an example of the current width in the posts: https://postimg.cc/Sn3ZbHsv

    How can I do that?

    Beste regards
    Christian

    #1425945

    Hi,
    For the post in your screenshot there are two widths, the first is the layout width which is set to 1310px on your site at Enfold Theme Options ▸ General Layout ▸ Dimensions ▸ Maximum Container width, so if this is what you mean please adjust this setting.
    Enfold_Support_3927.jpeg
    The second is the blog template which on your site is 800px:
    Enfold_Support_3929.jpeg
    which you can change to 100% with this css in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field

    #top.single .fullsize .template-blog .post .entry-content-wrapper,
    #top.single .fullsize .template-blog .post .entry-content-wrapper>* {
        max-width: 100%;
    }

    This is the expected results:
    Enfold_Support_3931.jpeg
    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1425947

    Hi Mike,

    Thank you. This works great. Thank you thank you.

    Best regards
    Christian

    #1425949

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Remove Sidebar completely for certain Product Categories’ is closed to new replies.