Dynamic Content for Image Element

I’d like to use the dynamic content (feature image) option for an image element. However, if no featured image is set, it renders a broken image icon. Is there a way for the dynamic content to not render out an image if no featured image is set?

thanks

Hi @wbgTHEMECO,

Yes, it is possible to hide it using CSS. Try adding this custom CSS on the page CSS, or on Header CSS where you add this image with dynamic source.

#dynamic-img img[src=""] {
   display: none;
}

Hope this helps.

Thanks for that tip. It works well!

You’re welcome!
We’re glad @Lely were able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.