Remove header from WooCommerce admin panel


Using storefront theme i want to remove breadcrumbs when logged in admin panel WooCommerce |Products Store Activity| Inbox| Orders| Stock| Reviews| Notices| breadcrumbs. *please note this i need if you are logged in current user not a administrator. Code i used using css

.woocommerce-layout__header-breadcrumbs {
   display: none !important;
.woocommerce-layout {
   display: none !important;

screen shot


Add the follows code snippet in your active theme’s functions.php –

remove_action( 'in_admin_header', array( 'WC_Admin_Loader', 'embed_page_header' ) );

Answered By – itzmekhokan

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published