Site logo

Archived topic

How to change the Product category archive page title from a H1 to h2

1 reply · Started by David on December 5, 2022

Viewing posts 1–2 of 2

I have tired this code snip but changed the classes to match product archive title but had no luck.

if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) {
/**
* Show the product title in the product loop. By default this is an H2.
*/
function woocommerce_template_loop_product_title() {
echo '<h3 class="woocommerce-loop-product__title">' . get_the_title() . '</h3>';
}
}

This archived topic is closed to new replies.