Community Forums › Forums › Archived Forums › Design Tips and Tricks › Agency Pro darken backstretch image
Tagged: agency pro, darken backstretch image
- This topic has 10 replies, 2 voices, and was last updated 9 years, 4 months ago by
carasmo.
-
AuthorPosts
-
December 1, 2015 at 4:30 pm #172387
Tim Squires
MemberHi, is there a way to darken the backstretch image in Agency Pro? The image that I am currently using is too bright, and I would like to darken it to make the text more readable. I know that I could do that in Photoshop, but is there a CSS transparency filter or overlay technique that I could use?
Site is here:
http://mountains.timsquires.com.au/
http://mountains.timsquires.com.au/December 1, 2015 at 5:09 pm #172391Tim Squires
MemberJust looking at the demo - it already has the image darkened, somehow I have turned this feature off and can't work out how to get it back to the original state. Combing my style sheet at present for a solution . . .
December 2, 2015 at 5:42 pm #172536Tim Squires
MemberHaving a lot of trouble - can't find a solution, although I'm sure it must be a simple one. I have somehow switched off the dark screen over the Agency Pro backstretch image and need to restore it. Would be grateful for any advice, thanks 🙂
December 2, 2015 at 6:25 pm #172539carasmo
ParticipantThe theme doesn't apply any darkening via css or jquery. The Backstretch image is dark to start with:
http://demo.studiopress.com/agency/wp-content/themes/agency-pro/images/bg.jpg
and you could use jQuery or CSS.
This works:
body { position: relative } body:before { z-index: -1; content: ' '; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0, .2); }
December 2, 2015 at 6:25 pm #172540carasmo
Participant.2 in the background style is 20% of black. .5 would be 50% .8 80% and so forth
December 3, 2015 at 6:18 am #172588Tim Squires
MemberThanks for your code. Sadly I can't get it to work 🙁 will keep trying.
Thanks again.
December 3, 2015 at 10:08 am #172607carasmo
Participantyou put it in your style.css for your child theme Admin/Appearance/Editor then select the file style.css from the right side and scroll all the way down and paste in the code -- making sure you are outside all other styles and media queries. I just did it to my install of the theme, works fine.
December 4, 2015 at 4:23 am #172704Tim Squires
MemberHi Carasmo, thanks so much. I followed those steps and still no luck. Nothing changes on my setup 🙁
December 4, 2015 at 7:31 am #172726carasmo
ParticipantYes, because the CSS that you added is not closed. Run your CSS through lint.
This
@media only screen and (max-width: 280px) { .feature-heading h1{ top: 142px; } /*For feather logo over feature image on country pages
Should be:
@media only screen and (max-width: 280px) { .feature-heading h1{ top: 142px; } } /* <----- this was missing */ /* For feather logo over feature image on country pages
December 4, 2015 at 2:09 pm #172774Tim Squires
MemberHi Carasmo, thanks so much for your code and for picking up that error in my CSS - very much appreciated. It works perfectly now. Best wishes, and thanks again 🙂
December 4, 2015 at 2:32 pm #172776carasmo
Participant -
AuthorPosts
- The topic ‘Agency Pro darken backstretch image’ is closed to new replies.