Tagged: Sidebar remove
-
AuthorPosts
-
November 1, 2023 at 8:07 am #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
ChristianNovember 2, 2023 at 5:18 pm #1424424Hey 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,
IsmaelNovember 2, 2023 at 8:40 pm #1424438Hi Ismael,
thanks so much.I’ll try it out, but it looks pretty good.
Thank you! :)
Best regards
ChristianNovember 3, 2023 at 8:11 pm #1424594Hi,
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,
RikardNovember 17, 2023 at 9:12 am #1425809Hi,
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
ChristianNovember 17, 2023 at 5:16 pm #1425860Hi,
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
ChristianNovember 18, 2023 at 10:29 pm #1425945Hi,
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.
The second is the blog template which on your site is 800px:
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:
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,
MikeNovember 18, 2023 at 10:49 pm #1425947Hi Mike,
Thank you. This works great. Thank you thank you.
Best regards
ChristianNovember 18, 2023 at 11:05 pm #1425949Hi,
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 -
AuthorPosts
- The topic ‘Remove Sidebar completely for certain Product Categories’ is closed to new replies.