All things Shopify and commerce
Hello,
I was trying to make my banner clickable without showing the buttons. Once I managed to do it successfully, I noticed that there's now a space between the banner and the featured products on mobile (on desktop it looks good). So I looked for the solution here and found a couple that I tried by editing code but nothing worked so far.
Help please! website: www.sunkisses.me
Thank you
Solved! Go to the solution
This is an accepted solution.
Hi @Rolita
This is strange as the CSS is not reflecting on frontend.
You can paste the below code in theme.liquid just before </head>
<style>
.banner--mobile-bottom .banner__content {display: none;}
</style>
This will surely work.
Let me know if this helps you.
Thanks
Sheesh B
Hi @Rolita
I've identified the issue and got the solution for you.
Kindly paste the below CSS in bsae.css at bottom.
.banner--mobile-bottom .banner__content {
display: none;
}
Thanks
Sheesh B
Thank you. I tried this but didn't work either. Is the problem maybe from the banner itself?
Hi @Rolita
You added the CSS but not correctly. There are extra closing brackets in CSS which affecting it to work.
I added the same CSS inline on frontend and it's working as you can see below.
Let me know if this helps you to fix the issue.
Thanks
Sheesh B
Not sure what I am doing wrong. I deleted the extra brackets but still not working. Can you please check again. Thank you in advance.
Hi @Rolita
Kindly add one closing bracket at red box as shown in the below image.
It'll fix the issue.
Thanks
Sheesh B
I added the bracket as per the screen shot but the space is still there on the mobile 😞 Could it be something else?
This is an accepted solution.
Hi @Rolita
This is strange as the CSS is not reflecting on frontend.
You can paste the below code in theme.liquid just before </head>
<style>
.banner--mobile-bottom .banner__content {display: none;}
</style>
This will surely work.
Let me know if this helps you.
Thanks
Sheesh B
YAY it worked!!!! Thank you soooooo much for the help!
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025