Site logo

[Support request] How to change the Product category archive page title from a H1 to h2

Home Forums Support [Support request] How to change the Product category archive page title from a H1 to h2

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2449875
    David

    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>’;
    }
    }

    #2449892
    Fernando
    Customer Support

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.