-
AuthorPosts
-
February 18, 2015 at 7:20 am #209203
I would like to add 50% black opacity to the Rev Slider background image on this page:
http://holywisdom.isthmusdesignstudio.com/land-stewardship/
so the text stands out from the image.
I would like to create a CSS class so I can add the opacity to any slider easily, but I can’t figure it out. How would I do this?
Thanks!
NickFebruary 18, 2015 at 11:14 am #209383Hi Nick,
Thanks for writing in!
You can use following CSS code under Custom > CSS in the Customizer:
#rev_slider_4_1 .tp-bgimg.defaultimg { opacity: 0.5 !important; }
It will only work on the slider of that page.
Thanks!
April 20, 2015 at 10:43 am #254039This works, thank you. However, I’m wondering if there is a way to accomplish something similar without needing to add custom CSS code with each slider instance. Rev Slider has a couple places where you can add a class or ID attribute… I’d like to be able to add a class (e.g. “dark-slide) attribute and have all slides with that attribute have the darkened background. Is this possible? If not, I will have to add each page/slide manually by CSS.
Thanks!
NickApril 20, 2015 at 12:21 pm #254115Hi Nick,
I don’t think you can add a CSS class to background image of your revolution slider layer. However, if you add a class to the slide itself (see: http://prntscr.com/6w45i5). You can target the background image using following CSS code:
.dark-bg .tp-bgimg.defaultimg { opacity: 0.5 !important; }
Thanks!
April 22, 2015 at 9:19 am #255794That’s perfect. Thank you!
April 22, 2015 at 9:44 am #255816You’re most welcome.
Let us know if you need anything else.
Have a great day! 🙂
February 4, 2016 at 10:17 pm #780958I couldn’t get this to work, but then found this in case anyone else was interested. http://www.themepunch.com/faq/extend-image-overlay/
February 5, 2016 at 2:17 am #781168Hi,
Thanks for sharing that. Have a great day!
-
AuthorPosts