If you are using WordPress with a theme that includes a sidebar, and want to remove it from your shop section – this is how you do:

Note: This guide is for Ubuntu Server 14.04, but the same principal goes for Windows Servers as well as this is in the backend code.

  1. Go to ../wp-content/plugins/woocommerce
    $~: cd /path-to-your-webfolder/wp-content/plugins/woocommerce/templates
    $~: sudo nano single-product.php

    In file single-product.php remove the following code:

    <?php
    		/**
    		 * woocommerce_sidebar hook
    		 *
    		 * @hooked woocommerce_get_sidebar - 10
    		 */
    		do_action('woocommerce_sidebar');
    	?>
  2. Next, edit the file archive-product.php
    $~: sudo nano archive-product.php

    In file archive-product.php remove the following code:

    <?php
    		/**
    		 * woocommerce_sidebar hook
    		 *
    		 * @hooked woocommerce_get_sidebar - 10
    		 */
    		do_action('woocommerce_sidebar');
    	?>
  3. Check your shop and see if the sidebar is removed.


 Pro tip

The easiest way to deploy your website is to download the pre-configured WordPress VM.