Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Last active May 22, 2021 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameskoster/65a502f1afc681ef2431 to your computer and use it in GitHub Desktop.
Save jameskoster/65a502f1afc681ef2431 to your computer and use it in GitHub Desktop.
Outlet - Remove homepage categories
add_action( 'init', 'jk_remove_homepage_categories', 99 );
function jk_remove_homepage_categories() {
remove_action( 'storefront_page', 'outlet_homepage_navigation', 5 );
remove_action( 'storefront_page', 'outlet_homepage_content_wrapper', 6 );
remove_action( 'storefront_page', 'outlet_homepage_content_wrapper_close', 30 );
}
@joelwills
Copy link

In Storefront 2.2 I believe this should be storefront_homepage instead of storefront_page?

@johndcoy
Copy link

Correct, the snippet below works as of Storefront 3.6 and Outlet 2.0.15:

add_action( 'init', 'jk_remove_homepage_categories', 99 );
function jk_remove_homepage_categories() {
	remove_action( 'storefront_homepage', 'outlet_homepage_navigation', 5 );
	remove_action( 'storefront_homepage', 'outlet_homepage_content_wrapper', 6 );
	remove_action( 'storefront_homepage', 'outlet_homepage_content_wrapper_close', 30 );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment