There’s a couple of ways to do it, you can edit the template file \woocommerce\templates\single-product\title.php
directly and change your title format there. Otherwise, you can remove the WordPress hook in your functions.php
file and add your own to override it which I borrowed from this answer
<?php
remove_action( 'woocommerce_single_product_summary','woocommerce_template_single_title', 5 );
add_action( 'woocommerce_single_product_summary', 'modify_woocommerce_template_single_title',5 );
function modify_woocommerce_template_single_title() {
if ( has_term( 'Cookware', 'product_cat' ) ) {
?>
<h1 class="product_title entry-title"><span class="notranslate"><?php the_title(); ?></span></h1>
<?php
}
else {
?><h1 class="product_title entry-title"><?php the_title(); ?></h1><?php
}
}
?>
This will only change the single product page titles. The shop page will keep the normal product titles as it uses a different hook but you can apply the same principles are remove the hook woocommerce_shop_loop_item_title
and override the function woocommerce_template_loop_product_title