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
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>';
}
}
Hi David,
For reference, can you share a link to a product archive page on your site?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information