x

Change the Search Icon Color?

enochpacheco.com

I need the search Icon, located on the top right corner, to be the color: #fff

2,539 Views
Message 1 of 9
Report
1 Best Answer

Best Answer

@weebly4mayor You've identified the correct block of css. You just need to add a filter attribute to the search icon image (below, I've made the filter change the search icon image color to black and then the image color is fully inverted to white):

.wsite-search-button {
display: inline-block;
width: 20px;
height: 20px;
background: transparent url(theme/images/light-search.png?1620100864) no-repeat center center;
background-size: contain;
filter: brightness(0) invert(1);
color: #fff;
}

View Best Answer >

2,508 Views
Message 9 of 9
Report
8 REPLIES 8

I'm pretty sure this is the line I need to change?image

2,533 Views
Message 9 of 9
Report

Best Answer

@weebly4mayor You've identified the correct block of css. You just need to add a filter attribute to the search icon image (below, I've made the filter change the search icon image color to black and then the image color is fully inverted to white):

.wsite-search-button {
display: inline-block;
width: 20px;
height: 20px;
background: transparent url(theme/images/light-search.png?1620100864) no-repeat center center;
background-size: contain;
filter: brightness(0) invert(1);
color: #fff;
}

2,509 Views
Message 9 of 9
Report

Thank you for that @PaulMathews

Smiley Happy

2,499 Views
Message 9 of 9
Report

2,525 Views
Message 9 of 9
Report

2,523 Views
Message 9 of 9
Report

2,522 Views
Message 9 of 9
Report

2,521 Views
Message 9 of 9
Report

You've identified the correct block of css. You just need to add a filter attribute to the search icon image (below, I've made the filter change the search icon image color to black and then the image color is fully inverted to white):

.wsite-search-button { display: inline-block; width: 20px; height: 20px; background: transparent url(theme/images/light-search.png?1620100864) no-repeat center center; background-size: contain; filter: brightness(0) invert(1); color: #fff; }

2,184 Views
Message 10 of 9
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.