Photo Gallery on event page

Home Forums Ticket Products Event Tickets Plus Photo Gallery on event page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #861662
    skysoclear
    Participant

    Hi.

    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,

    #862239
    Geoff
    Member

    Hi 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!
    Geoff

    #862277
    skysoclear
    Participant

    Hi 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

    #862290
    Geoff
    Member

    Ah, 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!
    Geoff

    #862867
    Geoff
    Member

    Thanks 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Photo Gallery on event page’ is closed to new replies.