title: remove sidebar shop page woocommerce
body: <p>I've been desperately searching for help with this. I would really love to remove the sidebar only from my woocommerce shop base page. In the admin options for my theme there's a place to enable the sidebar on the product page but what you select there impacts not just the shop base page but all of the archive pages.</p>
  
  <p>Within the archive-product.php file there's code that controls the layout based on if that button is enabled so I thought my best bet would be to use an if else statement to say if its the shop page, use the 'no-sidebar' class. This is what I came up with but it's not working. Any thoughts would be fantastic.</p>
  
  <pre><code>&lt;?php if ( is_object( $shop_page) ) : ?&gt;
  &lt;div id="default_products_page_container" class="no-sidebar"&gt;
  &lt;?php elseif (have_posts() ) : ?&gt;
  &lt;div id"default_products_page_container" class="with-sidebar"&gt;  
  </code></pre>