Dawn theme - how to adjust mobile banner image sizing

Solved

Dawn theme - how to adjust mobile banner image sizing

michellelholm
Excursionist
24 0 3

I'm trying to reduce the size of my banner image on the mobile device. It looks perfect on the desktop, but it's SUPER zoomed in on my mobile and looks bad. I have searched and tried a few different codes that have been suggested in other discussions, but they don't seem to work. Any tips? 

Screen Shot 2024-02-21 at 9.45.35 PM.png

Accepted Solution (1)
ThePrimeWeb
Shopify Partner
2138 615 497

This is an accepted solution.

Hey @michellelholm,

 

Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.

<style>
@media only screen and (max-width: 989px) {
    .banner__media.animate--zoom-in>img:not(.zoom):not(.deferred-media__poster-button) {
        position: absolute !important;
        height: -webkit-fill-available !important;
        height: -moz-available !important;
    }
}
</style>

 

Screenshot is for reference only, the correct code to paste is the one shown above.

ThePrimeWeb_0-1708610218802.jpeg

 

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!

View solution in original post

Replies 5 (5)

ThePrimeWeb
Shopify Partner
2138 615 497

Hey @michellelholm,

 

Can you share the link to your store? Thanks!

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
michellelholm
Excursionist
24 0 3
michellelholm
Excursionist
24 0 3
ThePrimeWeb
Shopify Partner
2138 615 497

This is an accepted solution.

Hey @michellelholm,

 

Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.

<style>
@media only screen and (max-width: 989px) {
    .banner__media.animate--zoom-in>img:not(.zoom):not(.deferred-media__poster-button) {
        position: absolute !important;
        height: -webkit-fill-available !important;
        height: -moz-available !important;
    }
}
</style>

 

Screenshot is for reference only, the correct code to paste is the one shown above.

ThePrimeWeb_0-1708610218802.jpeg

 

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
michellelholm
Excursionist
24 0 3

Worked! Thank you for saving me more hours of headaches!