Shopify themes, liquid, logos, and UX
Hello, I would like to change the font size & h2 font size for my blog posts on mobile view only. I am using Dawn theme. How can I do this? Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi @jeremymac
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
{% if template contains 'article' %}
@media screen and (max-width: 767px){
h1{
font-size: 30px !important;
}
h2{
font-size: 28px !important;
}
}
{%endif%}
You can change the value of the 30/28px to any size you want
Hope this can help you solve the issue
Best regards,
Noah | 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.
This is an accepted solution.
Hi @jeremymac
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
{% if template contains 'article' %}
@media screen and (max-width: 767px){
h1{
font-size: 30px !important;
}
h2{
font-size: 28px !important;
}
}
{%endif%}
You can change the value of the 30/28px to any size you want
Hope this can help you solve the issue
Best regards,
Noah | 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.
This worked, thank you!
Glad that i can help. Let me know if you have any questions
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.
@jeremymac - can you please share blog post link?
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025