• Resolved jcutler

    (@jcutler)


    When you set the featured image for an event, it appears as the event image in list view, and as the cover image behind the event title as well as displayed in the right-hand column in single event view.

    The cover image can be undesirable if the image is for example a portrait oriented image. Is there a way to disable the display of the cover image? I know this potentially could be done via css, however there fixed heights and positions that are added to the event header container which make this non-trivial. It’s also not part of the single event template markup under Formatting options.

    Thanks,

    Jim

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jcutler

    (@jcutler)

    I believe this part of how the event page is rendered may be controlled by my theme, I’m going to dig a little deeper, but if anyone has other thoughts please let me know.

    Can you provide a link to your website or at least a screenshot. I don’t know what you mean by the “cover image behind the event title”. Are you referring to the single event page? I know that some themes will display the featured image at the top of the page on single post pages and they may also display them at the top of the page on single event pages (these are posts with the event post type). Meanwhile Events Manager displays the featured image on the single event page near the top (on the right side for a desktop display and at the top on mobile displays. If you’re trying to disable the display of the featured image provide by the theme then the way to do that would depend on the theme. You could modify the theme template so it doesn’t display the featured image on single event pages. For example if the theme template uses the “the_post_thumbnail()” function to display the featured image you could create a child theme and change the template to use something like this:

        if ( ! is_singular( 'event' ) ) {
    if ( has_post_thumbnail() ) {
    the_post_thumbnail();
    }
    }

    You can use the Child Theme Configurator plugin to create your child theme.

    https://youtu.be/iRGn5Ypm1qw?si=r4kCcKP_0G_3s7d5

    Thread Starter jcutler

    (@jcutler)

    This is indeed the doing of my theme, I’ve found where this cover image is being added, so I’ll be using a child theme to change this behavior. Thanks for your quick response!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hide Event Cover Image (Featured Image)’ is closed to new replies.