New Shopify Certification now available: Liquid Storefronts for Theme Developers

Removing Buttons on Image Banner on Mobile - Dawn Theme

Solved
StaceyS
Tourist
10 0 1

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!

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
4210 970 1180

This is an accepted solution.

Can check this code, again if its working on iphone? Thanks!

 

@media only screen and (max-width: 749px){
.banner--stacked .banner__box {
    display: none !important;
}
}

 

And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 14 (14)
topnewyork
Explorer
153 22 19

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find base.css file

 

@media only screen and (max-width: 600px) {
.banner__content.banner__content--bottom-right.page-width.scroll-trigger.animate--slide-in {
    display: none !important;
}
}

 

Need a Shopify developer?
Hire us at topnewyorkwebdesign.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
StaceyS
Tourist
10 0 1

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

topnewyork
Explorer
153 22 19

check this code

 

 

@media only screen and (max-width: 600px) {
.banner__content.banner__content--bottom-right.page-width.scroll-trigger.animate--slide-in {
    display: none !important;
    visibility:hidden !important;
}
}
Need a Shopify developer?
Hire us at topnewyorkwebdesign.com
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
StaceyS
Tourist
10 0 1

Hi. This is the same. In the shopify dashboard in mobile view, it's not there, yet on my phone it's still there. Did you see it on your phone? Thanks. 

Made4uo-Ribe
Shopify Partner
4210 970 1180

Hi @StaceyS 

Do you really like to remove theme? Or maybe this one will be good idea?

Made4uoRibe_1-1700060660343.png

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:

 

@media only screen and (max-width: 749px){
.banner--content-align-mobile-right .banner__box {
    background: transparent !important;
    text-align: center !important;
}
.banner__content.banner__content--bottom-right.page-width.scroll-trigger.animate--slide-in {
    position: absolute;
    top: 5px;
}
.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;
}
}

 

  • And Save.

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Made4uo-Ribe
Shopify Partner
4210 970 1180

Oh to remove the buttons. Check this one. 

  • 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;
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_2-1700060891422.png

     

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


StaceyS
Tourist
10 0 1

I tried this, it also works on the shopify site, but not on my iphone. It still shows on my phone?? 

Made4uo-Ribe
Shopify Partner
4210 970 1180

it is iphone or ipad? 

Made4uoRibe_0-1700062792409.png 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


StaceyS
Tourist
10 0 1

I'm on an Iphone 13Pro . I also checked on a friends older iphone both show the buttons. 

Made4uo-Ribe
Shopify Partner
4210 970 1180

This is an accepted solution.

Can check this code, again if its working on iphone? Thanks!

 

@media only screen and (max-width: 749px){
.banner--stacked .banner__box {
    display: none !important;
}
}

 

And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


StaceyS
Tourist
10 0 1

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. 

StaceyS
Tourist
10 0 1

I have the idea to take your code and paste it inside assets > Section.image.banner at the bottom and it worked!! Thanks. 

Made4uo-Ribe
Shopify Partner
4210 970 1180

Good to hear that! Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


StaceyS
Tourist
10 0 1

Be sure to post this code into the assets --- section.image.banner.css at the bottom. Then it works.