Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #654315

    Hi,
    how can I remove the sidebar from some Woocommerce category pages?

    regards,
    Salvatore Battaglia

    #654337

    Hey 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,
    Andy

    #654669

    Hi,
    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 much

    #655443

    Hi,

    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,
    Yigit

    #655614

    Hi, thank you for replay.
    I want remove sidebar only in certain category page.
    How can i do it?

    #655758

    Hi,

    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,
    Yigit

    #655815

    Perfect! 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

    #655821

    Hi!

    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,
    Yigit

    #655827

    If 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 241

    i get this error in this page: http://www.mmgservice.it/product-category/shop/

    #655834

    Hey!

    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,
    Yigit

    #1229207

    Hi,
    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/terz4l

    Thank you,

    John

    • This reply was modified 4 years, 4 months ago by crabjack.
    #1229283

    Hey crabjack,

    Please provide a link to the site/page in question so we can look into this issue further.

    Best regards,
    Jordan Shannon

    #1229430

    Hi 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

    #1229625

    Hi 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,
    Victoria

    #1230117

    Hi Victoria,

    Perfect~ thank you!

    John

    #1230120

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1230122

    Hi Jordan – I think that is it for this. Looking the way I want it to. Thank you all for greatsupport.

    John

    #1230395

    Hi 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

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Remove sidebar from some Woocommerce categories’ is closed to new replies.