woocommerce / theme-customisations

313 stars 112 forks source link

Removing storefront sidebar not working #8

Closed abbeyjaye closed 8 years ago

abbeyjaye commented 8 years ago

Hi There, I installed this plugin and added the following code to the custom/functions.php, but it's not working. It works in child themes, so I'm at a stand still with how to figure out why this isn't working. remove_action( 'storefront_sidebar', 'storefront_get_sidebar' );

Any help is appreciated. Thank you. ~Abbey

jameskoster commented 8 years ago

Try this;

add_action( 'init', 'jk_remove_sidebar' );
function jk_remove_sidebar() {
remove_action( 'storefront_sidebar', 'storefront_get_sidebar' );
}
abbeyjaye commented 8 years ago

Thank you.