Wordpress - Woocommerce: How to remove page-title at the home/shop page but not category pages
Instead of hacking templates, you can put this in functions.php of your child theme:
add_filter( 'woocommerce_show_page_title', 'not_a_shop_page' );
function not_a_shop_page() {
return boolval(!is_shop());
}
Hello you can do this thing and i hope this work for you also
<?php
if (!is_shop()) {
if ( apply_filters( 'woocommerce_show_page_title', true ) ) { ?>
<h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
<?php }else{ ?>
<h1 class="page-title"><?php echo ''; ?>
}
} ?>
For More Prefer this link