移除 WooCommerce 管理頁面上方的橫幅標題

整形前!

 

// Disable WooCommerce Header in WordPress Admin
add_action(‘admin_head’, ‘Hide_WooCommerce_Breadcrumb’);

function Hide_WooCommerce_Breadcrumb() {
echo ‘<style>
.woocommerce-layout__header {
display: none;
}
.woocommerce-layout__activity-panel-tabs {
display: none;
}
.woocommerce-layout__header-breadcrumbs {
display: none;
}
.woocommerce-embed-page .woocommerce-layout__primary{
display: none;
}
.woocommerce-embed-page #screen-meta, .woocommerce-embed-page #screen-meta-links{top:0;}
</style>’;
}

 

整形後!