0
Answered

empty sidebar widget issue

bookelegantnights 5 months ago in Themes updated by Jesse Owens (Community Manager) 5 months ago 3

This is only happening on one page. My 'shop' page that lists my packages shows the empty sidebar even when the page is live leaving a huge gap on the side and making the page display incorrectly. How can I disable this inactive widget? Nothing is in it.

Answer

Answer

Hello,

Using the Wedge Theme (or other BoldGrid Version 1 Themes), there is a way to accomplish this, but it does take a little bit of advanced work. Here's how to do it:

  1. Install and activate the Code Snippets Plugin.
  2. Add a new snippet using the Snippets -> Add New menu item.
  3. Paste the following code into the new Snippet:
    function disable_shop_sidebar( $configs ){
    	$configs['template']['sidebar'][] = 'is_shop';
    	return $configs;
    }
    add_filter('boldgrid_theme_framework_config', 'disable_shop_sidebar');
  4. Click the option for Only run on site front-end.
  5. Click Save Changes and Activate.

You should end up with a code snippet that looks exactly like this:

Once you've followed these steps carefully, your shop page will no longer have a sidebar. Please note that if there is any typo in the code snippet, it could cause a fatal error on your website, and you'll need to enable Code Snippets Safe Mode to recover your site.

I hope this helps! If you have any trouble, please let us know, we're happy to help.

Answer

Hello,

Using the Wedge Theme (or other BoldGrid Version 1 Themes), there is a way to accomplish this, but it does take a little bit of advanced work. Here's how to do it:

  1. Install and activate the Code Snippets Plugin.
  2. Add a new snippet using the Snippets -> Add New menu item.
  3. Paste the following code into the new Snippet:
    function disable_shop_sidebar( $configs ){
    	$configs['template']['sidebar'][] = 'is_shop';
    	return $configs;
    }
    add_filter('boldgrid_theme_framework_config', 'disable_shop_sidebar');
  4. Click the option for Only run on site front-end.
  5. Click Save Changes and Activate.

You should end up with a code snippet that looks exactly like this:

Once you've followed these steps carefully, your shop page will no longer have a sidebar. Please note that if there is any typo in the code snippet, it could cause a fatal error on your website, and you'll need to enable Code Snippets Safe Mode to recover your site.

I hope this helps! If you have any trouble, please let us know, we're happy to help.

I am using the wedge theme so these steps aren't working for me. I also checked the woocommerce area and didn't see anything about the sidebar there. Any other steps?

Answered

Thank you for contacting us, our team is happy to help you get that sidebar hidden on your shop page!

If you are using our Crio theme to design your website then the easiest way to remove that sidebar is to use the Customizer options.  The WooaCommerce Shop page uses the same sidebar settings as Blog pages in Crio and you can use some of the steps in this guide from our support center to disable to sidebar for your shop pages.

I hope that helps you get the design you need for your shop and please let us know if there is anything else that we can do to help!