I like to change banner text and button color to white on desktop version only while keeping it black color on mobile version.
Mobile:
Desktop:
thanks
A user wants to change banner text and button colors to white on desktop while keeping them black on mobile.
Solution provided:
.banner__content elements for text and button stylingIssue encountered:
The initial CSS solution worked for banners but also affected button outline colors on other desktop components, like “add to cart” buttons on product pages.
Resolution:
The user fixed the issue by modifying the CSS selector from .button--secondary::after to .banner__content .button::after, which restricts the styling changes to banner buttons only.
Status: Resolved - the customization now applies exclusively to banner elements without affecting other page components.
I like to change banner text and button color to white on desktop version only while keeping it black color on mobile version.
Mobile:
Desktop:
thanks
Hey @Fikson
Kindly share your Store URL and Password if enabled
Hiden.myshopify
Hiden
Hey @Fikson
Follow these Steps:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thanks a lot. Worked perfectly ![]()