How can I modify the H2 font size on the 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
8532 1682 1692

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 solution to let me know or Buy me Coffee ❤️!
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.

PageFly-Oliver
Shopify Partner
878 190 176

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 176

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.