Format the H2 tag differently in the product descriptions

This topic has 3 replies, 2 voices, and was last updated 1 year, 5 months ago ago by slippery

  • Avatar: slippery
    slippery
    Participant
    September 30, 2022 at 16:35

    Hello,

    I would like to edit the H2 to have a different font size, however, this change needs to only be reflected in the product description of the product page.

    It would be perfect if this can be done to affect all product descriptions on the site at once.

    Let me know if this makes sense or if you need more information.

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 1, 2022 at 06:29

    Hello, @slippery,

    As you explained, you also have the other H2 tags in your product’s short description other than the sentence you want to change the font size which also has the H2 tag, so this is not simply possible, as if we apply the CSS to H2 tag, it will have the impact on the complete site H2 tags.

    Now, you can achieve what you want using a simple trick.

    You have to edit your product page and assign the Custom Class to that particular H2 tag as shown in this screenshot: https://postimg.cc/HJPpcZSF

    After that you can apply the Custom CSS to that Custom Class and add that CSS under XStore >> Theme Settings >> Theme Custom CSS >> Global CSS.

    https://postimg.cc/21kmHRMP

    It will surely work for you.

    Regards 8Themes Team.

    Avatar: slippery
    slippery
    Participant
    October 3, 2022 at 10:27

    Thanks a lot, that worked a treat! 🙂

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

The issue related to '‘Format the H2 tag differently in the product descriptions’' has been successfully resolved, and the topic is now closed for further responses

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