The “X” button to the right is still black.
Topic summary
A user seeks to change the color of “x” (close) buttons from black to white on their Shopify store using the Origin theme. The buttons appear in the search modal and header areas.
Solutions Provided:
Multiple community members offered CSS code snippets targeting different selectors:
- Initial attempt targeted
.search-modal__content svg.icon.icon-closeand.header__icon svg.icon-close - When one button remained black, additional solutions targeted
button.search-modal__close-button * - Final comprehensive solution targets both
div.search-modal__content.search-modal__content-bottom > button > span > svgandspan.svg-wrapper.header__icon-close > svg
Implementation Steps:
- Navigate to Shopify admin → Online Store → Themes → Edit Code
- Locate CSS file (base.css, theme.css, style.css, or main.css) or theme.liquid
- Add provided CSS code using
color: white !important; - Save changes
The most recent solution includes a screenshot showing successful white “x” buttons. The discussion appears resolved with working code provided.