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.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024