Home › Forums › Calendar Products › Events Calendar PRO › Hiding Featured Image in Single Event Page
- This topic has 12 replies, 5 voices, and was last updated 9 years, 6 months ago by
Cliff.
-
AuthorPosts
-
October 12, 2016 at 12:26 pm #1175570
mountmadonnaschool
ParticipantI 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 🙁October 12, 2016 at 1:16 pm #1175599Justin
ParticipantThe same thing is happening on my site well.
October 12, 2016 at 2:43 pm #1175636Cliff
MemberHi. 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!
October 12, 2016 at 3:15 pm #1175648mountmadonnaschool
ParticipantThis reply is private.
October 13, 2016 at 9:15 am #1175971Cliff
MemberThis reply is private.
October 17, 2016 at 9:29 am #1177720mountmadonnaschool
ParticipantHere’s the file and the file location screen shot.
I don’t feel comfortable activating another theme.
October 17, 2016 at 11:21 am #1177803Geoff B.
MemberGood 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.October 17, 2016 at 1:53 pm #1177943mountmadonnaschool
ParticipantThis reply is private.
October 17, 2016 at 1:54 pm #1177944mountmadonnaschool
ParticipantDoes it matter which CSS file i put the style in?
October 17, 2016 at 7:51 pm #1178114Cliff
MemberHi 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.
October 19, 2016 at 11:55 am #1179329mountmadonnaschool
ParticipantAHA!
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!
October 19, 2016 at 12:41 pm #1179386Cliff
MemberExcellent! Good find.
Have a great rest of your week.
-
AuthorPosts
- The topic ‘Hiding Featured Image in Single Event Page’ is closed to new replies.
