Hide theme featuredf image container when there is no featured image

Home Forums Calendar Products Events Calendar PRO Hide theme featuredf image container when there is no featured image

  • This topic has 3 replies, 2 voices, and was last updated 9 years ago by Birgit.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1271601
    Birgit
    Participant

    Hi again,

    in the single events page, the theme template displays the featured image of the event in the header container, but in cases when there is no image it displays an empty container – which i want to get rid of.

    if ( ! is_singular( 'post' ) && ! has_post_thumbnail() ) {
        $classes .= ' hidden';
    }

    This hides the container always, even when there is an image
    Any idea? Thamls, Markus

    #1272033
    Birgit
    Participant

    Resolved this 🙂

    #1272162
    Geoff
    Member

    Right on! I’m so glad to hear everything is working smoothly and I appreciate you following up to let us know. Definitely keep us posted if any other questions come up and we’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide theme featuredf image container when there is no featured image’ is closed to new replies.