Shopify themes, liquid, logos, and UX
I have an image banner with some text in it on my Dawn theme site. The text looks good on the desktop layout but when I view on a phone it reflows and looks wrong.
Is there a way to have a different/smaller text size for the mobile layout but keep the desktop layout how it is?
Here is a link to the site:
https://ouliw1orb7nyhzlp-82913034581.shopifypreview.com
Solved! Go to the solution
This is an accepted solution.
@bjohns Please help me replace the code you added with this new one as the same place, it would not change the desktop
<style>
@media screen and (max-width: 767px){
.banner__heading {
font-size: 2rem;
}
.banner__text p {
font-size: 1rem;
}
}
</style>
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi @bjohns
This is Richard 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>
<style>
.banner__heading {
font-size: 2rem;
}
.banner__text p {
font-size: 1rem;
}
</style>
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Richard,
Thanks for your reply
This changes both the desktop and the mobile layout (making the desktop layout text too small). Ideally I'd like the change that you suggested to just alter the mobile layout.
Is that possible?
Many thanks.
This is an accepted solution.
@bjohns Please help me replace the code you added with this new one as the same place, it would not change the desktop
<style>
@media screen and (max-width: 767px){
.banner__heading {
font-size: 2rem;
}
.banner__text p {
font-size: 1rem;
}
}
</style>
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Many thanks Richard. That did the trick!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025