Home › Forums › Ticket Products › Event Tickets Plus › Photo Gallery on event page
- This topic has 4 replies, 2 voices, and was last updated 11 years, 5 months ago by
Geoff.
-
AuthorPosts
-
November 5, 2014 at 1:09 am #861662
skysoclear
ParticipantHi.
I’m running an event and I have two tickets. I want to show a gallery of photos where the current single photo is. Is there a way to do this?
thanks,
November 5, 2014 at 8:05 am #862239Geoff
MemberHi there, Ross! Nice to see you again and hope all is well. 🙂
Great question. If I’m understanding correctly, you would like to show multiple photos in the ticket that gets emailed to attendees instead of the single header image. Is that correct?
If so, you can override the email.php template and modify it to display multiple photos where the header image is specified. To override the template:
- Make a copy of it. It’s located at /the-events-calendar/views/tickets/email.php
- Place the copied file in a new directory in your theme called /tribe-events/tickets
These steps are outlined in greater detail in our Themer’s Guide.
Finding a way to add multiple photos from the WordPress editor is going to be the challenging part and is a customization we’ll leave in your hands. One idea might be to use a plugin like Advanced Custom Fields to create new file upload fields for events and then use them in the email template.
Does this help answer your question? Please let me know. 🙂
Cheers!
GeoffNovember 5, 2014 at 8:20 am #862277skysoclear
ParticipantHi Geoff,
Thanks for your message – I was referring to the Event Page.
So far, my page has a large image (which I presume is the featured image). I was wondering whether I was able to use a Product Gallery like we have in WooCommerce?
thanks, Ross
November 5, 2014 at 8:28 am #862290Geoff
MemberAh, gotcha–thanks for clarifying!
Yes, this is still possible using the same process, only with a different template. Instead of email.php, you will override the single-event-php template (/the-events-calendar/views/single-event.php).
You could remove the following line:
<?php echo tribe_event_featured_image( $event_id, 'full', false ); ?>…and replace it with the alternative image solution you prefer, whether that is Advanced Custom Fields, the Products Gallery, or another method.
Cheers!
GeoffNovember 5, 2014 at 3:28 pm #862867Geoff
MemberThanks for following up, Ross! I’m glad this worked out. 🙂
Since you marked this question as answered, I’m going to go ahead and close it. Please feel free to hit us up with a new thread if any other questions pop up. We’d be happy to help.
Cheers!
Geoff -
AuthorPosts
- The topic ‘Photo Gallery on event page’ is closed to new replies.
