Shop and categories: Change product name attribute h2 to span or div

This topic has 2 replies, 2 voices, and was last updated 1 years, 8 months ago ago by Rose Tyler

  • Avatar: Thomas
    Thomas
    Participant
    January 30, 2023 at 15:26

    Hi,

    is it possible that in the shop and in the categories the product name is not marked with h2 but with span or div for example?

    BG
    Thomas

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 31, 2023 at 08:28

    Hello, Thomas

    By default, there is no such option.
    To change the tag you may copy xstore/woocommerce/content-product.php and xstore/woocommerce/content-product-slider.php to your child-theme/woocommerce/content-product.php and child-theme/woocommerce/content-product-slider.php respectively. In your child’s files look for all .product-title with h2 tag and replace with your own -> https://prnt.sc/yLgqjYqGkCfZ

    Kind Regards,
    8theme team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.