-
AuthorPosts
-
June 28, 2016 at 5:27 pm #654315
Hi,
how can I remove the sidebar from some Woocommerce category pages?regards,
Salvatore BattagliaJune 28, 2016 at 5:44 pm #654337Hey integraing,
Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
AndyJune 29, 2016 at 9:27 am #654669Hi,
i want to remove sidebar in this category page http://www.mmgservice.it/product-category/shop/special-offer/
to have 5 or 6 element in a row.
Tell me what I can do.
Thank you very muchJune 30, 2016 at 7:03 pm #655443Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
.woocommerce.archive .content { width: 100%; border: none; } .woocommerce.archive .sidebar { display: none!important; }
Best regards,
YigitJuly 1, 2016 at 9:56 am #655614Hi, thank you for replay.
I want remove sidebar only in certain category page.
How can i do it?July 1, 2016 at 1:43 pm #655758Hi,
Please change the code to following one
.woocommerce.archive.term-special-offer .content { width: 100%; border: none; } .woocommerce.archive.term-special-offer .sidebar { display: none!important; }
Best regards,
YigitJuly 1, 2016 at 3:40 pm #655815Perfect! thank you very much Yigit.
In the same category, and only in this category, how can I show a custom number of products in a row?thank you very much
July 1, 2016 at 3:51 pm #655821Hi!
Please try adding following code to Functions.php file of your child theme in Appearance > Editor
add_filter('loop_shop_columns', 'loop_columns'); if (!function_exists('loop_columns')) { function loop_columns() { if(is_product_category( 'special-offer' )){ return 3; // 3 products per row }} }
Or you can try using this plugin – https://wordpress.org/plugins/woocommerce-product-archive-customiser/
Best regards,
YigitJuly 1, 2016 at 4:03 pm #655827If i write you code in functions.php i get the following error:
Warning: Division by zero in /home/usedmarb/mmgservice_root/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 241i get this error in this page: http://www.mmgservice.it/product-category/shop/
July 1, 2016 at 4:43 pm #655834Hey!
Please go to wp-content/themes/enfold/functions.php file via FTP and remove the code from the file and try using the plugin
Best regards,
YigitJuly 9, 2020 at 4:12 pm #1229207Hi,
This thread is really old, but the suggested CSS does still
remove the side bar. Is there a way to, then, make the content of the page full width instead of displaying only blank side bar? https://prnt.sc/terz4lThank you,
John
- This reply was modified 4 years, 4 months ago by crabjack.
July 10, 2020 at 4:02 am #1229283Hey crabjack,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan ShannonJuly 10, 2020 at 3:07 pm #1229430Hi Jordan,
This is one of the pages – https://best-alzheimers-products.com/product-category/root-catalog/alzheimers-products-by-stage/products-for-early-stage-alzheimers. All category pages display the same. The CSS that removed the content of the sidebar, but not the container, is:
.woocommerce.archive .content {
width: 100%;
border: none;
}
.woocommerce.archive .sidebar {
display: none!important;
}Thank you.
John
July 11, 2020 at 4:07 pm #1229625Hi John,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.container .av-content-small.units.template-shop .page-thumb img { display: block; margin: 0 auto; } .container .av-content-small.units.template-shop { width: 100%; }
If you need further assistance please let us know.
Best regards,
VictoriaJuly 13, 2020 at 9:45 pm #1230117Hi Victoria,
Perfect~ thank you!
John
July 13, 2020 at 9:48 pm #1230120Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonJuly 13, 2020 at 10:22 pm #1230122Hi Jordan – I think that is it for this. Looking the way I want it to. Thank you all for greatsupport.
John
July 14, 2020 at 7:29 pm #1230395Hi crabjack,
Glad we could help :)
Great!
We are closing the thread.
If you need further assistance please let us know in a new one.
Best regards,
Victoria -
AuthorPosts
- The topic ‘Remove sidebar from some Woocommerce categories’ is closed to new replies.