Re: Text Re-flow on Mobile Layout Dawn Theme

Solved

How can I adjust text size for mobile layout on Dawn theme?

bjohns
Excursionist
27 2 7

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

Screenshot 2024-01-16 at 13.38.30.png   Screenshot 2024-01-16 at 13.38.40.png

Accepted Solution (1)
PageFly-Richard
Shopify Partner
4971 1112 1795

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.

View solution in original post

Replies 4 (4)

PageFly-Richard
Shopify Partner
4971 1112 1795

 

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>

PageFlyRichard_0-1705458093439.png

 

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.

bjohns
Excursionist
27 2 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.

PageFly-Richard
Shopify Partner
4971 1112 1795

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.

bjohns
Excursionist
27 2 7

Many thanks Richard. That did the trick!