Hiding Featured Image in Single Event Page

Home Forums Calendar Products Events Calendar PRO Hiding Featured Image in Single Event Page

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1175570
    mountmadonnaschool
    Participant

    I don’t want the featured image to appear on the event page itself.

    I removed
    <?php echo tribe_event_featured_image( $event_id, ‘full’, false ); ?> from single-event.php like it says to do on https://theeventscalendar.com/support/forums/topic/hide-featured-image-on-single-event-pages/
    But the image is still appearing 🙁

    #1175599
    Justin
    Participant

    The same thing is happening on my site well.

    #1175636
    Cliff
    Member

    Hi. Sorry for the issue here using our Themer’s Guide.

    Just to clarify, you should copy /wp-content/plugins/the-events-calendar/src/views/single-event.php to /wp-content/themes/YOUR_ACTIVE_CHILD_THEME/tribe-events/single-event.php and then make your edit (like commenting out the line you referred to).

    If you need further assistance, please also provide a link to an event that does display the featured image.

    Justin, please open your own separate ticket if you need assistance with this issue.

    Thanks!

    #1175648
    mountmadonnaschool
    Participant

    This reply is private.

    #1175971
    Cliff
    Member

    This reply is private.

    #1177720
    mountmadonnaschool
    Participant

    Here’s the file and the file location screen shot.

    I don’t feel comfortable activating another theme.

    #1177803
    Geoff B.
    Member

    Good afternoon Robyn,

    I’m chiming in for my colleague Cliff who is out today.

    Would you mind sending a copy of your edited single-event.php file ?

    In the meantime, you can also use CSS to hide the image. Just add the following rule:

    .single-tribe_events .tribe-events-event-image {display:none !important;}

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1177943
    mountmadonnaschool
    Participant

    This reply is private.

    #1177944
    mountmadonnaschool
    Participant

    Does it matter which CSS file i put the style in?

    #1178114
    Cliff
    Member

    Hi again.

    1)

    The edits you made to single-event.php are pretty much just to remove the H3 tags from the navigation and remove outputting tribe_event_featured_image(). Is this correct?

    If the featured image is still appearing, I’d suggest temporarily editing the plugin’s core file itself — at /wp-content/plugins/the-events-calendar/src/views/single-event.php — to remove display of the featured image and see if it works. This will at least let you know you’re editing files on the correct site and that the theme itself or some other factor like caching isn’t at play here.

    2)

    You can add custom CSS code via your child theme’s style.css file or via a plugin like Simple Custom CSS or, my favorite, Jetpack. Jetpack supports regular CSS and the LESS and Sass pre-processors.

    If you’re not a CSS expert, Jetpack’s Custom Design reference may prove helpful.

    Please let me know how it goes for you.

    #1179329
    mountmadonnaschool
    Participant

    AHA!

    I found another instance of the file!! There’s a hidden themes directory I didn’t know was there.

    Thank you for all your help!

    #1179386
    Cliff
    Member

    Excellent! Good find.

    Have a great rest of your week.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Hiding Featured Image in Single Event Page’ is closed to new replies.