Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Featured Image Conditional Code?

Home / Forums / Membership Forums / Featured Image Conditional Code?

This topic is: Not Resolved
[Not Resolved]
July 27, 2020 at 6:42 am

Is there a way to remove the featured image code from the post/page layout if no featured image is detected? As things are, the layout leaves a huge gap for inserting the featured image – even if the post/page does not have such an image!

Surely it would be better for this part of the layout to be conditional on there actually being a featured image available? If there is no image, then remove that part of the layout.

Perhap we could use a code snippet to do this?

Antar

  • The forum ‘Membership Forums’ is closed to new topics and replies.