Background image not showing in a loop
I have a loop, working through some Portfolio entries. It's working, and most content is showing OK wth the exception of setting the background image of a wrap to be the featured image from the portfolio.
When I do this, I get a CSS error in the Chrome console stating "--mfn-featured-image is not defined"
If I put a static image rather than a variable image in, it works fine - so the concept of a background image works with a static image.
If it add some text into my loop and output the featured image variable as text, it's correct and is working OK - so I know my featured image is set correctly and the image exists.
It seems to be a glitch in the CSS somewhere?
Does anyone have any ideas? I have cleared caches and tried incognito with no joy.
Comments
Hi,
Please always attach a link to your website so we can check it out. If the page is offline(localhost), then our help will be limited. You will have to contact us when the page is online. Also, please make sure that the page is not under maintenance before you provide us with the link.
It is always a good idea to also attach a screenshot showing your issue.
Thanks