Adding a background image with ::before not working

I’m trying to add a background image to a div. I want the background image to have an opacity: .5. so that when text is placed on top of the background image it will be legible.

I’m trying to add a background image using, ::before. the background should have an opacity of .5. Since the opacity is set in the ::before, the children elements won’t be effected by the opacity. (I don’t want the text to inherit the opacity…just the background.)

WordPress version: 6.1.1
Cwicly Plugin Version
Cwicly Theme version: 1.0.3

Hello @mattmiller,

Thanks for reporting this bug, and sorry for the inconvenience caused.

Unfortunately, I can’t seem to reproduce this on my side as the background image is being properly added to the ::before element.

Are you able to add a background colour to the ::before and see it apply?


Moving this to General as I can’t reproduce this on my side.

If you do experience the same problem, please reply to this thread and we will investigate further.