Goal: Hide image-banner buttons on mobile in the Dawn theme.
What happened:
Several CSS snippets using mobile media queries were suggested and added to base.css (and similar), e.g., hiding .banner__content on screens ≤600–749px and layout tweaks to better fit the banner on mobile.
In the Shopify theme editor’s mobile preview, the buttons disappeared, but on actual iPhones (iPhone 13 Pro and an older iPhone), the buttons still showed, suggesting the rules weren’t applied live (likely file/scope precedence or caching rather than code syntax).
An alternative approach proposed improving banner layout instead of removing buttons.
Key technical detail:
CSS media queries target small screens (e.g., max-width: 600–749px) to conditionally hide or reposition banner elements.
Resolution/outcome:
Moving the CSS to the asset file specifically for the banner (assets/section.image.banner.css) and placing it at the bottom made the change take effect on iPhones.
Final takeaway: For Dawn, place mobile-specific banner overrides in section.image.banner.css (not just base.css) to ensure they apply on mobile devices.
Hello, I am trying to remove the image banner buttons from the mobile site. They are in a good position on Desktop,but on mobile they come before the image. Looking for help to remove from mobile. Thanks!
Here’s my site so you can look www.maderadesignstudio.com I tried to attach images but it won’t allow that/ Thanks!
Hello, Thanks for the super fast response. I added that code at the bottom of base.css – in the Shopify editor it shows that the buttons are gone, but on my Iphone they still appear. I cleared the cache on my ipone, can you have a look and see if you see the buttons live? Thanks a ton! - Stacey
The size of your banner in mobile are not fitted well. So I fixed a bit.
I used this codes.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
.banner__content.banner__content--bottom-right.page-width.scroll-trigger.animate--slide-in {
display: none;
}
.banner--medium.banner--mobile-bottom:not(.banner--adapt) .banner__media, .banner--medium.banner--stacked:not(.banner--mobile-bottom):not(.banner--adapt)>.banner__media {
height: 100vw !important;
}
}
Hi. Just replaced old code with this. It doesn’t work on my iphone, I still see the buttons. Have you looked on your phone? Do you see them on mobile? Thanks for your help.