How to leave an image field empty in the CMS?

Often I need to leave an image field empty in the CMS for a particular item. Currently is seems if you leave a field empty, Wix automatically adds a weird blobby placeholder image. How can I tell Wix not to add those placeholders? I just want the frame to remain empty, or better yet collapse entirely so the page layout can adjust accordingly. This is particularly important when I hand the site over to the client. Workarounds like adding white or transparent images aren’t really a solution.

Here’s an example of a recipes page. There is no photo available for this particular recipe so it adds this blob image:

Wix Studio

To collapse the image element you need to code it.

You have to wait until dataset is onReady then check if a value exists inside the database. Then expand or collapse when appropriate .

Thanks, so even if I don’t collapse the box and want to leave it blank, there’s no way to remove the placeholder blob without code?

There has to be image there as a placeholder in order to populate something from the database. It cannot not exist.

My suggestion is upload a screenshot of a white box or whatever color your background page is. Disconnect the current image element from the dataset. Swap out the old picture for the new image. Reconnect to dataset.

It’s the little creative hacks that make a huge difference when something isn’t possible or you’re simply trying shortcuts.

#codequeen

Thanks, yes I’m just surprised this isn’t a big issue for everyone, I seem to run into it with every site I build. I’ll get my developer onto it but it seems like a solution to a problem that shouldn’t really exist. Such is life :blush:
Thanks for your help.

1 Like

Well it wasn’t til recently that people started to be brave and dive into the Velo world.

But when you’ve been coding on Wix as long as I have …. you tend to learn a thing or two here and there when these little nuisances pop up randomly.