-
-
Save corsonr/8703820 to your computer and use it in GitHub Desktop.
<?php | |
/** | |
* Removes the "shop" title on the main shop page | |
*/ | |
add_filter( 'woocommerce_show_page_title', '__return_false' ); |
Add this to your css
.woocommerce #Subheader {
padding: 110px 0 100px !important;
}
.woocommerce #Subheader .title {
display: none !important;
}
I added a ccs code:
.page-title-shop h1 { display: none }
I like this one:
add_filter('woocommerce_show_page_title', function(){ return false; } );
PHP >5.3
For 2020 who got here, you may use add_filter( 'woocommerce_show_page_title', '__return_false' );
Updated... 6 years later 😉
hi.. I am using below code to hide page title but it is not working.
function hide_woocommerce_page_title( $visibility ) {
// Default $visibility value is true
return false;
}
add_filter( 'woocommerce_show_page_title', 'hide_woocommerce_page_title' );
Thanks!
For me this worked h1.page-title { display: none }
In Custom CSS editor page https://mysite.com/wp-admin/customize.php?autofocus%5Bsection%5D=custom_css
added css to customization (least work & won't get overwritten by future updates or flagged by wordfence)
.woocommerce .page-title, .woocommerce-page .page-title{
display: none !important;
}
add_filter('woocommerce_show_page_title', '__return_false');