Solved

Text Re-flow on Mobile Layout Dawn Theme

bjohns
Excursionist
16 0 6

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
4079 913 1567

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!


PageFly - #1 Page Builder for Shopify merchants.


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
4079 913 1567

 

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!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

bjohns
Excursionist
16 0 6

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
4079 913 1567

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!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

bjohns
Excursionist
16 0 6

Many thanks Richard. That did the trick!