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?
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025