WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Dont Show the Sidebar on Product Category Page

Dont Show the Sidebar on Product Category Page

Viewing 1 replies (of 1 total)
  • You need to remove the following lines of code from the archive-product.php

    <?php
    	/**
    	 * woocommerce_sidebar hook
    	 *
    	 * @hooked woocommerce_get_sidebar - 10
    	 */
    	do_action('woocommerce_sidebar');
    ?>

    or, hook the sidebar out by adding the following lines of code to your functions.php (best way to do it actually)

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

Viewing 1 replies (of 1 total)
  • The topic ‘Dont Show the Sidebar on Product Category Page’ is closed to new replies.
Skip to toolbar