Title: Remove Sidebar
Last modified: March 18, 2018

---

# Remove Sidebar

 *  Resolved [Blogging Theme Styles](https://wordpress.org/support/users/bloggingthemes/)
 * (@bloggingthemes)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/remove-sidebar-62/)
 * I created a theme with _s starter theme that also has the option to include support
   for WooCommerce (which I did). Now the problem is that my theme does not use 
   the sidebar.php file which WooCommerce is looking for but loads default widgets
   at the bottom of my page(s) along with this notice:
 * > Notice: Theme without sidebar.php is deprecated since version 3.0.0 with no
   > alternative available. Please include a sidebar.php template in your theme.
 * No alternative available? I find that discouraging to say the least.
 * Basically I’m being told I need that sidebar.php file in my theme even though
   I don’t use it while wanting a full width layout for my theme’s WooCommerce.
 * Is there absolutely no solution to this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Caleb Burks](https://wordpress.org/support/users/icaleb/)
 * (@icaleb)
 * Automattic Happiness Engineer
 * [8 years, 1 month ago](https://wordpress.org/support/topic/remove-sidebar-62/#post-10096396)
 * So, WordPress has a built-in sidebar that is it retiring: [https://github.com/WordPress/WordPress/blob/80158fee6c1d55cbb5e7ce092dedf987d6befa27/wp-includes/theme-compat/sidebar.php#L10](https://github.com/WordPress/WordPress/blob/80158fee6c1d55cbb5e7ce092dedf987d6befa27/wp-includes/theme-compat/sidebar.php#L10)
 * It think the message will only show if the sidebar is being requested to load,
   which WooCommerce might be doing. Especially if you have widgets on the sidebar.
 * A blank sidebar.php template in the theme should be enough to suppress the problem,
   or if you are using said template (even if it’s technically at the bottom and
   not at the site), you’ll need to populate the template with code accordingly.
 *  Thread Starter [Blogging Theme Styles](https://wordpress.org/support/users/bloggingthemes/)
 * (@bloggingthemes)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/remove-sidebar-62/#post-10096464)
 * Thanks for the follow up….
 * Retiring the sidebar.php file is good news.
    As for WooCommerce requesting the
   sidebar, is there a method to filter it to not do that, as in looking for the
   sidebar.php file in a theme? People were able to do that before but on older “
   how to” tutorials online, they don’t seem to work anymore.
 *  [Caleb Burks](https://wordpress.org/support/users/icaleb/)
 * (@icaleb)
 * Automattic Happiness Engineer
 * [8 years, 1 month ago](https://wordpress.org/support/topic/remove-sidebar-62/#post-10096776)
 * So I’m not 100% sure what needs to be done, but WC does come with a sidebar template.
 * Here it is: [https://github.com/woocommerce/woocommerce/blob/dec792b731dbbea6d34aa3ddcd6a3bf05bf43077/templates/global/sidebar.php](https://github.com/woocommerce/woocommerce/blob/dec792b731dbbea6d34aa3ddcd6a3bf05bf43077/templates/global/sidebar.php)
 * And removing this hook should prevent it from being used: [https://github.com/woocommerce/woocommerce/blob/1bb88d0a50c9c3a0426c2be1145f9019089915bf/includes/wc-template-hooks.php#L54](https://github.com/woocommerce/woocommerce/blob/1bb88d0a50c9c3a0426c2be1145f9019089915bf/includes/wc-template-hooks.php#L54)
 * Otherwise, if not that, your theme might be called sidebar in it somewhere.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove Sidebar’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [woocommerce. sidebar](https://wordpress.org/support/topic-tag/woocommerce-sidebar/)

 * 3 replies
 * 2 participants
 * Last reply from: [Caleb Burks](https://wordpress.org/support/users/icaleb/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/remove-sidebar-62/#post-10096776)
 * Status: resolved