How to Make All Header Images Darker
I have played around for over an hour to try and make just the header image a bit more opaque, so that the white title text shows up better against the background.
Trying to use filter: brightness(50%); but it makes both the background image AND the text darker -- I want only the header background image darker.
For example, the photo at the top of this page.
I can add the highlighted CSS to the 'background-image' area 'element.style' area in Chrome (see screenshot) to make JUST the background darker, as I want:
background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)),url(https://bhutantrips.com/wp-content/uploads/2020/03/tigers-nest-bhutan.jpg)
...but I cannot find where to put this in the theme CSS to make it do this for every header image.
Comments