• Resolved davidgimenezq

    (@davidgimenezq)


    The woocommerce sidebar appears in the seller’s store even if the sidebar is completely deactivated.

    This bug occurs using the theme: NewStore.

    Please fix it. Thanks!

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

    (@dualcube)

    Hi @davidgimenezq, sorry to hear that you have faced this issue.

    Please note, our vendor shop page is also a taxonomy page such as Tag or Category. So, if your theme is compatible with WooCommerce properly, then if you disable sidebar for taxonomy pages, the same should be reflected for the vendor shop page too.

    Also, please do ask your theme whether they are using woocommerce_sidebar for their pages.

    Thread Starter davidgimenezq

    (@davidgimenezq)

    I understand, is there any code for functions.php that allows me to facilitate the removal of the woocommerce sidebar only on the sellers page?

    Dualcube

    (@dualcube)

    Hi @davidgimenezq, please refer to this code :

    function woocommerce_remove_sidebar_shop() {
    
    ?? if( is_tax('dc_vendor_shop') )
    ????? remove_action( 'woocommerce_sidebar','woocommerce_get_sidebar',10 );
    }
    add_action( 'template_redirect', 'woocommerce_remove_sidebar_shop' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce sidebar cannot be hidden’ is closed to new replies.