Hello! In your file wp-content\themes\woodmart\inc\template-tags\template-tags.php on line 1343
, when displaying search results, the mandatory WooCommerce filter is missing to customize the title $page_title = apply_filters( 'woocommerce_page_title', $page_title )
, which does not allow the title to be overridden.
Simply add one line of code on line 1343 of wp-content\themes\woodmart\inc\template-tags\template-tags.php so that it looks like this:
$title = esc_html__( 'Search Results for: ', 'woodmart' ) . get_search_query();
$title = apply_filters( 'woocommerce_page_title', $title );
Please do this urgently via a patch, it is very necessary.
In this part of the code
if ( is_search() ) {
$title = esc_html__( 'Search Results for: ', 'woodmart' ) . get_search_query();
}
?>
<div class="wd-page-title page-title <?php echo esc_attr( $title_class ); ?> title-blog" style="<?php echo esc_attr( $style ); ?>">
<div class="container">
<?php if ( $page_title && is_single() ) : ?>
<h3 class="entry-title title"><?php echo wp_kses( $title, woodmart_get_allowed_html() ); ?></h3>
<?php elseif ( $page_title ) : ?>
<<?php echo esc_attr( $title_tag ); ?> class="entry-title title"><?php echo wp_kses( $title, woodmart_get_allowed_html() ); ?></<?php echo esc_attr( $title_tag ); ?>>
<?php endif; ?>
<?php do_action( 'woodmart_page_title_after_title' ); ?>
<?php if ( $breadcrumbs && ! is_search() ) : ?>
<?php woodmart_current_breadcrumbs( 'pages' ); ?>
<?php endif; ?>
</div>
</div>
<?php
return '';