• Resolved R. Sabbir

    (@sabbir37)


    Hello WooCommerce Support Team,

    I’m customizing my product reviews section and need to change the <h2> tag for the reviews title (with the class woocommerce-Reviews-title) to a <span> or other customizable tag. This change is important to me for SEO purposes, as I want to keep the page structure more organized and improve heading hierarchy.

    Could you let me know the best way to make this adjustment?

    <h2 class="woocommerce-Reviews-title"> 6 reviews for <span>Trane 3 Ton 18 SEER2 V/S Heat Pump System [with Install]</span> </h2>

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Saif

    (@babylon1999)

    Hello @sabbir37,

    This can be done with a child theme, just add a file with the same path and name as the one you’d like to edit (which should be one of those). Copy over its content, and you’re ready to start making changes.

    Please check this guide if you’re not using a child theme: https://developer.woocommerce.com/docs/how-to-set-up-and-use-a-child-theme/

    It can be a bit confusing the first time, so if anything isn’t clear, feel free to ping me here—I’m happy to help!

    Thread Starter R. Sabbir

    (@sabbir37)

    thanks @babylon1999

    I’m using a child theme on my site, but I need help figuring out what to add. Can you clarify these based on my requirements?

    Saif

    (@babylon1999)

    If I understand correctly, you want to change the <h2> to <span> here, correct?

    Just as the template comment says, create a new file with the same name single-product-reviews.php to yourtheme/woocommerce/single-product-reviews.php in your child theme. If you don’t have a woocommerce directory in your child theme, create one.

    Then copy the template from the original template to the file you created and edit this line:

    If you haven’t done this before, it’s best to start with a staging environment first, just to be safe. : )

    Thread Starter R. Sabbir

    (@sabbir37)

    I received a hint from your first reply and I successfully changed the tag.

    Thank you for your help!

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