New Shopify Certification now available: Liquid Storefronts for Theme Developers

Change H2 font size on Stockholm theme

rescuestory
Visitor
1 0 0

Hello. The default H2 font size is too big on Stockholm theme, it is almost the same size as the H1 and you can barely tell a difference so it looks bad. How do I decrease the H2 fo

Replies 3 (3)
Dan-From-Ryviu
Shopify Partner
5679 1047 1073

Hi @rescuestory 

You can change font size of it by adding this code to your theme.liquid file before </head> tag

<style>
@media only screen and (min-width: 750px) {
h2, .h2 { font-size: 32px !important; }
}
</style>

- Helpful? Like and Accept a solution. - Donate: Buy coffee - or Paypal me ❤️
- Ryviu - Product Reviews app, collect consumer photo reviews, import reviews from AliExpress, Amazon, Etsy, Shoppe and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 3 months of Shopify for $1/month. Sign up now

PageFly-Oliver
Navigator
502 96 90

Hi @rescuestory ,

 

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save

 

 

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

PageFly-Oliver
Navigator
502 96 90

Sorry I lost the code

<style>
@media (min-width: 760px) {
#MainContent h2{ font-size: 30px; }
}
</style>

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.