This topic has 3 replies, 2 voices, and was last updated 2 years, 1 months ago ago by slippery
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.
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.
It will surely work for you.
Regards 8Themes Team.
Thanks a lot, that worked a treat! 🙂
Tagged: best, descriptions, differently, format, product, selling, themes, woocommerce
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