Shopify themes, liquid, logos, and UX
Currently, my header is transparent and all white icons and pages, when I click on the search bar nothing shows up because the scheme is white, how can I fix this while keeping everything else the same?
Hi @LovAri ,
To fix the issue with your transparent header and white icons while keeping the header appearance consistent, you can add custom CSS to specifically target the search bar background and icon color when it’s active. Here’s how:
Go to the Theme Code Editor:
Add Custom CSS:
/* Adjust background for search bar when clicked */
.search-bar-input {
background-color: rgba(0, 0, 0, 0.1); /* Light background for visibility */
color: #000; /* Text color */
}
/* Change color for search icon and text */
.header-icon-search,
.search-bar-input::placeholder {
color: #333; /* Darker color for visibility */
}
/* Optional: Change the border to make it more visible */
.search-bar-input {
border: 1px solid rgba(0, 0, 0, 0.2); /* Subtle border */
}
Save and Preview:
This will maintain your transparent header while ensuring the search elements are more visible.
Got it! If you found my suggestions helpful, please consider liking or marking it as a solution.
Your feedback is appreciated! If you have any more questions or need further assistance, just let me know.
Thanks & Regards
Akshay Bhatt
Hey akshay thanks for the help, I was actually able to figure out the icon colors but Im still stuck on how to make the search bar black when I click on it. I have attached images of what it looks like now and what I want it to look like
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