Hide Dynamic image element if no data is submite
I would like to hide and image element on my front end when I don't select an image on a custom field.
So I have an image custom field on my portfolio CPT, on my template I define the image as dynamic and select the custom field to populate the image data.
I would like to hide the image element when I don't select any image.
0
-
Hi Mario,
Unfortunately, this is not possible. At least for now. We have this on our list of feature requests. If there are not many such images you could hide them with CSS if you have several image elements without a source then this is not a solution.
0
Please sign in to leave a comment.
Comments
1 comment