[Resolved] Conditionally suppress featured image based on tag

Home Forums Support [Resolved] Conditionally suppress featured image based on tag

Home Forums Support Conditionally suppress featured image based on tag

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #976026
    maria

    I’d like to suppress the featured image in any blog posts that are tagged as having a video. How can I do this?

    I tried using the Hide Featured Image plugin, but it ended up suppressing the thumbnails in the YAARP section of the post rather than the featured image itself.

    #976040
    David
    Staff
    Customer Support

    Hi there,

    you can use the Layout Element to disable the featured image dynamically based on post tags:

    https://docs.generatepress.com/article/layout-element-overview/

    #976076
    maria

    I’ve created a new layout element for posts that have a specific tag, but I’m not clear on what to do next. How do I suppress featured images in the new layout element that I’ve created?

    #976081
    David
    Staff
    Customer Support

    Make sure you have enabled the Disable Elements module in Appearance > GeneratePress, then you can check Featured Image on the Disable Element.

    Your Display Rule will be Post Tag > Videos

    #976084
    maria

    That worked, thanks.

    #976099
    David
    Staff
    Customer Support

    You’re welcome

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