WooCommerce - How to remove sidebar

woocommerce remove sidebar from product category pages
remove sidebar woocommerce divi
woocommerce storefront remove sidebar
remove sidebar wordpress
hide sidebar in wp
remove blog sidebar
how to get rid of sidebar
remove sidebar elementor

I need to remove sidebar into my woocommerce store. I have tried with backend in option theme and in each category but resultless.

I tried also:

1.file wp-template-hooks.php removed--> do_action(..

2.file archive-product.php removed--> do_action(..

  1. insert in file function.php in theme dir and function.php in woocommerce dir remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );

  2. into database there is 2 tables with 2 fields serialised but is a risk change this.

resulless.

I finished the ideas. Where is saved into db the visibility of sidebar? or the variable?

Can you help me?

Thanks Ale

Please, add this code to your functions.php

function mb_remove_sidebar() {
    return false;
}

add_filter( 'is_active_sidebar', 'mb_remove_sidebar', 10, 2 );

Please, add this code to your functions.php function mb_remove_sidebar() { return false; } add_filter( 'is_active_sidebar', 'mb_remove_sidebar',  Another technique you can employ to remove the sidebar from the product page in WooCommerce is to use the is_active_sidebar WordPress function. This is an example of code snippet that uses is_active_sidebar to remove the WooCommerce sidebars:

I just wanted to update this post for WooCommerce version 3.2.3 - 2017

OK the WooCommerce Plugin includes a folder with all the template files if you want to make changes to the template on a custom theme or child theme you need to copy all of the desired template into a folder called woocommerce in your root theme folder. This will overwrite the plugin templates and will allow for WooCommerce updates with overwriting your custom changes. These templates have all of the do_actions and hooks in the comments so it makes it easy to understand how it's working.

That said WooCommerce has hooks that allow for you to add or remove blocks of code you can check out the API Docs here.

To remove the side bar you need to add this into your functions.php file in your theme setup function

remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 );

Disabling Sidebar in a WooCommerce Template​​ Navigate to woocommerce/templates/shop, and open up the sidebar. php file. Here, you need to comment out everything in the sidebar. php file using /* at the very top, and */ at the very bottom of the file. Steps to add/remove sidebar to WooCommerce Shop page. Step 1: Create a child theme and activate it. If you are not familiar with child themes and don’t know how to create one, I’ve made a child Step 2. Create the file archive-product.php in your child theme folder. Step 3. Add sidebar to your

You have already integrated WooCommerce in your theme?

If not, try to do this three steps for integration WooCommerce in your theme.

After that, remove get_sidebar(); from your_theme/woocommerce.php

It works fine for me. Screenshot here.

Hope it helps.

This tutorial is going to show you how to remove sidebar from product category page and make Duration: 1:28 Posted: 3 Dec 2015 WooCommerce: How to remove shop sidebar – make shop full-width This is a How To for: CleanSale , Kiosk , Magpress eCommerce , Tips & Tricks , WooCommerce Add to My Bookmarks The Problem

Further to @maksim-borodov's answer, I wanted to hide the sidebar conditionally, i.e. only on Product pages. Here's how:

function remove_wc_sidebar_conditional( $array ) {

  // Hide sidebar on product pages by returning false
  if ( is_product() )
    return false;

  // Otherwise, return the original array parameter to keep the sidebar
  return $array;
}

add_filter( 'is_active_sidebar', 'remove_wc_sidebar_conditional', 10, 2 );

Divi theme already removes the WooCommerce sidebar in their function and adds back the default Divi sidebar. To remove the sidebar from  That said WooCommerce has hooks that allow for you to add or remove blocks of code you can check out the API Docs here. To remove the side bar you need to add this into your functions.php file in your theme setup function. remove_action ( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10 ); share.

This can be done by woocommerce sidebar plugin. If you want to remove by code add this code to functions.php,

  if (!class_exists( 'WooCommerce' ) ) {return;}

  if(is_cart() || is_checkout() || is_product() || is_shop() || is_account_page()){ 
  ?>
  <style type="text/css">
    #secondary {
        display: none;
    }
    #primary {
       width:100%;
    }
   </style>
  <?php
 }
}

I cannot figure out how to get rid of this side bar from the my account page … all are turned off no custom ones… would like full screen… I guess it could be there​  Divi Theme – Remove WooCommerce Sidebar on the Single Product Page This will not need any coding. Divi theme already removes the WooCommerce sidebar in their function and adds back the default Divi sidebar. To remove the sidebar from products, go to Product > Edit and from the right sidebar select “Page Layout > Full Width”:

Disable the Sidebar on Product pages in WooCommerce Storefront Theme. by James Kemp — June 28, 2017. I discovered you can remove the sidebar for the storefront theme for woocommerce/wordpress really easily by simply going to Appearance > Customise > Widgets > Sidebar and then removing all the widgets. This worked for me, the theme automatically adjusted to 100% width and I didn’t have to edit any files.

Is there an easy way to remove the sidebar from the WooCommerce shop page? I set the page layout to 'Content (No sidebar)', but that didn't  The topic ‘Remove Sidebar from WooCommerce Shop page’ is closed to new replies. Disclosure: This page contains external affiliate links that may result in us receiving a commission if you choose to purchase mentioned product.

Home › Forums › Dazzling › Remove sidebar / widgets from WooCommerce shop page Tagged: Sidebar, widgets, WooCommerce This topic  The progress bar and course topics (widgets in the sidebar) need to remain on these pages. With the code you supplied, the sidebar (plus widgets) also disappears from the course pages/posts. Is there a way to remove the sidebar from the Woocommerce shop page only? Or just the widgets.

Comments
  • Thanks this is the only thing that worked for me!
  • Yes, Woocommerce is integrated in theme. In Woocommerce.php into theme i tryed to remove get_sidebar() But resulless
  • Doesnt work for me by any option. I tried to remove action and remove from woocommerce.php file within my theme. doesnt working...
  • I don't think you should be altering plugin files to this! Try removing the action instead, from your theme.