Re: Change H2 font size on Stockholm theme

How can I modify the H2 font size on the 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
11973 2341 2520

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 & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

PageFly-Oliver
Shopify Partner
878 190 190

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
Shopify Partner
878 190 190

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.