Shopify themes, liquid, logos, and UX
Hello i need help with banner buttons. They are good on desktop view but wont show on mobile view.
Solved! Go to the solution
This is an accepted solution.
Hey @meto2303,
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__box.content-container.content-container--full-width-mobile.color-scheme-1.gradient {
display: block !important;
}
h2.banner__heading.inline-richtext.h1,
.banner__buttons.banner__buttons--multiple a {
color: white !important;
}
.banner__content.banner__content--middle-center.page-width {
position: absolute !important;
top: 50% !important;
transform: translateY(-50%) !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
HI @meto2303 ,
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>
@media(max-width:767px){
.banner__box.content-container.content-container--full-width-mobile.color-scheme-1.gradient {
display: block !important;
}
h2.banner__heading.inline-richtext.h1 {
color: rgb(var(--color-foreground)) !important;
}
.banner__buttons.banner__buttons--multiple a {
color: rgb(var(--color-foreground)) !important;
}
}
Result:
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
LuffyOnePiece
This is an accepted solution.
Hey @meto2303,
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__box.content-container.content-container--full-width-mobile.color-scheme-1.gradient {
display: block !important;
}
h2.banner__heading.inline-richtext.h1,
.banner__buttons.banner__buttons--multiple a {
color: white !important;
}
.banner__content.banner__content--middle-center.page-width {
position: absolute !important;
top: 50% !important;
transform: translateY(-50%) !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025