Home › Forums › Calendar Products › Events Calendar PRO › Hide Event Image on Single Event Page
- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by
ksministries.
-
AuthorPosts
-
July 19, 2018 at 8:27 am #1579156
ksministries
ParticipantHello we found plenty of options to Hide Event Image on Single Event Page but we have not been able to figure out how to limit it to just certain event pages and not all. We would like to be able to hide the event featured image only from certain event pages. Here is the code we found that works for hiding featured image on EVERY event page. Thank you
/* Hide Event Image Single Event Page */
.single-tribe_events .tribe-events-event-image {
display: none;
}July 19, 2018 at 2:54 pm #1579609Cliff
MemberHi. Are there just a couple or a lot of events to hide the featured image for? In the future, will you continue adding new events for which the featured image should be hidden?
July 19, 2018 at 3:04 pm #1579618ksministries
ParticipantHi and thank you for the reply. I went on and ended up hiding all the featured images with the above code just to have consistency rather than just hiding those that had tickets connected to them. The goal here was to give the user immediate access to the ticket form upon landing on the single event page. I tried for days using the templates to place the ticket form above the featured image but when I could not figure that out I went with this option which was removing all the featured images. Would there be a way to keep the featured image and still get the form to sit above it? Unfortunately that was not one of there options either in the settings area. Thank you again.
July 20, 2018 at 11:53 am #1580369Cliff
MemberThanks for explaining. Please referenceĀ https://theeventscalendar.com/knowledgebase/moving-rsvp-ticket-forms/
If that doesn’t work for you, you could use one or both of these filters:
- tribe_tickets_rsvp_tickets_form_hook
- tribe_tickets_commerce_tickets_form_hook
They are located inĀ https://github.com/moderntribe/event-tickets/blob/4.7.5.1/src/Tribe/Tickets.php#L2070-L2095
Please reference https://theeventscalendar.com/tips-working-wordpress-actions-filters/ if you are not sure how to get started with WordPress action and/or filter hooks.
Please let me know how this goes for you.
August 11, 2018 at 9:35 am #1595405Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Hide Event Image on Single Event Page’ is closed to new replies.
