Remove the shop page title from the theme

Hello,
i found a code but it does not work on the TheShop theme. Why ?

<?php
add_filter( ‘woocommerce_show_page_title’ , ‘woo_hide_page_title’ );
/**

  • woo_hide_page_title

  • Removes the “shop” title on the main shop page

  • @access public

  • @since 1.0

  • @return void
    */
    function woo_hide_page_title() {

    return false;

}

and the code does not wrk, too

in the css code

.woocommerce-page .page-title {
display: none;
}

why ? how can i solve this problem ?

I SOLVED THİS PROBLEM FOR EVERYBODY.

wp-content/plugins/woocommerce/templates/archive-product.php

Edit this file archive-product.php and remove the below 3 lines.

<?php if ( apply_filters( ‘woocommerce_show_page_title’, true ) ) : ?>

<h1 class=”page-title”><?php woocommerce_page_title(); ?></h1>

<?php endif; ?>

This will remove page title on shop page and all other pages.

Hello @yyasin88,

It’s great that you solved the problem, and thank you for sharing a solution.

Please note that you have to override modified .php templates to avoid losing modifications after update.

Kind Regards, Roman.