Shopify themes, liquid, logos, and UX
How do I make these "x" buttons white? I've included screen shot with red circles around the "x" buttons
theme: origin
URL: billon.maison
Solved! Go to the solution
This is an accepted solution.
Hi @MaisonBillonDon,
Please try this code
button.search-modal__close-button * {
color: white !important;
font-size: 15px !important
}
Hi @MaisonBillonDon,
Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css/main.css/custom.css file Add the provided code at the end of the file.
.search-modal__content svg.icon.icon-close {
color: white !important;
}
.header__icon svg.icon.icon-close {
color: white !important;
}
The "X" button to the right is still black.
I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
2/ Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
3/ Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ
Here is the code for Step 3:
{% style %}
This is an accepted solution.
Hi @MaisonBillonDon,
Please try this code
button.search-modal__close-button * {
color: white !important;
font-size: 15px !important
}
Try this one.
div.search-modal__content.search-modal__content-bottom > button > span > svg,
span.svg-wrapper.header__icon-close > svg {
color: white !important;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Learn 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, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025