Flex Loop hide placeholder image when no featured image is uploaded

Posted in: Newspaper
Post count: 144

Is there a way to hide the featured image in a Flex Loop block when no featured image is uploaded? Right now, the system displays a default placeholder image in those cases. We’re working with a publisher who has a mix of posts—some with featured images and many without—so the result is a Flex block full of placeholders, which isn’t ideal.

What we’d love to do is have the posts without a featured image just display the title and excerpt, while still showing the full layout (image, title, and excerpt) for those that do include one. Is there any way to accomplish this with the current TagDiv Composer setup?

At the moment, I’m hiding the placeholder using CSS:

.td-image-container:has(.td-thumb-css[data-img-url*=”td_696x0.png”]) {
display: none;
}

This works, but I’m hoping there’s a more integrated solution—ideally something built into the editor that would prevent the markup from being output entirely, rather than hiding it with CSS.

Thanks so much for any guidance you can provide!

Post count: 35449

Hi,
Hi, we have this option on our implementation list and I hope our developers will implement it soon. For now the most used method that we have offered is the one with css which you are already using it.
Thank you!

Post count: 144

Thanks Calin! We will continue to use the CSS method we have in place currently.

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.