Tagged: color section, text
I have put a background image in a color section and want text over it. Unfortunately it’s a complex image, and white text does not read well by itself. Is there a way to create a transparent black background behind the text along the lines of the captions on layer sliders? I know that I can add a background overlay, but that effects the entire picture and I just want to pop the text area. Thoughts?
Hey Blaise!
Please wrap your text in special heading inside a span tag with custom class as following
<span class="custom-tag">hey you!</span>
and then add following code to Quick CSS in Enfold theme options under General Styling tab
.custom-tag { padding: 5px; background-color: rgba(0,0,0,0.5); }
Regards,
Yigit
After trying multiple css only solutions, that worked! Thanks!
For others following along, I added the entire span class code into the ‘Heading Text’ field of the Special Heading, then set the other parameters including text color. Previously I had just used a text box. This solution was exactly what I was hoping for.