We are going to rebrand our color scheme. The header will be green with a white header logo.
I am having trouble figuring out how to change the colors of the magnifying glass and the hamburger menu icon in the header. They are currently gray, which will look awful on top of a green header. The white icons will also match the new header logo.
I’ve looked in the theme menu and I see an option called header primary, which says in the description that it changes text and icons in the site’s header. However I’ve already set it to white and nothing has changed. Is there another way to change the color of these two icons?
The icons are a bit transparent, which might be throwing you off (that’s why they look grey instead of white when the header_primary color is set to white).
However, perhaps as we are now on one of the latest releases, now the home, search, and menu icons are greyed out. Can you explain how to make these icons white with opacity of 1? Did any of the selectors change?
Yes, these selectors are a little more specific now and we removed the opacity entirely in favor of using a solid color (there was a bug in Safari where SVG icons were clipped slightly because of the opacity).
You can remove anything you have related to opacity, and do this
I have a similar problem as the OP, probably somewhat simpler: For some reason the colour of the header icons got darker for no apparent reason (I assume it was related to the tidy-up measures on your side). Since my header is a darkish, I want the icons brighter.
I tried this
and am happy with the result. But I can’t seem to figure out how the hover settings work. With only the above css, my hover looks like this:
So the icon turns grey again, which is okay, but I’d like to try some other tints on it. The background seems to turn white (or almost white), which I would like to change to make it coherent with other menus.
제가 겪은 동일한 문제를 다른 분들도 마주할 수 있을까 해서 이렇게 글을 올립니다. 헤더와 아이콘에 사용하는 색상의 조합에 따라(제 헤더는 어두운 색입니다), 제공해 주신 코드로 아이콘에 적합한 색상 조합을 얻을 수 있었습니다:
.d-header-icons .d-icon {
color: white !important;
}
.d-header-icons a:hover {
background-color: #789946 !important;
color: white !important;
}
하지만 헤더 아이콘을 클릭한 뒤 마우스를 아이콘에서 떼어 내면 배경색이 다시 단색 흰색으로 돌아갔습니다. 제 헤더는 어두운 색이고 아이콘은 흰색으로 설정되어 있어 이 상태에서는 제대로 표시되지 않았습니다. 즉, 클릭 후 마우스를 떼어 내면 아이콘이 단색 흰색 사각형으로 보였죠. 이 문제를 해결하기 위해 위에서 언급된 "a:hover"뿐 아니라 “a” 상태에도 스타일을 적용해 주면 되었습니다(여기서 #93bb54는 제 헤더와 동일한 색입니다):
.d-header-icons .d-icon {
color: white !important;
}
.d-header-icons a:hover {
background-color: #789946 !important;
color: white !important;
}
.d-header-icons a {
background-color: #93bb54 !important;
color: white !important;
}