Venue Page – How to change from list view to photo view

Home Forums Calendar Products Events Calendar PRO Venue Page – How to change from list view to photo view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1299591
    jazzinconcert
    Participant

    Hi there,

    i was wondering if it is possible to change the list view on the venue page to photo view?

    Thanks
    Thomas

    #1300310
    Victor
    Member

    Hi Thomas!

    Thanks for getting in touch! Let me try to help you with this.

    There is no built in way to do that, so you would have to make a template customization to do that by following our themer’s guide.

    You should check the single-venue.php template file located at/wp-content/plugins/events-calendar-pro/src/views/pro/. Inside it, you will find the following line of code that calls a function which returns the list of events:

    echo tribe_venue_upcoming_events( $venue_id, $wp_query->query_vars );

    I hope that helps! Let me know if any other questions.

    Best,
    Victor

    #1300368
    jazzinconcert
    Participant

    Hi Victor,

    thanks for reply.

    I found it but i really don’t know what to do with it.

    What i want is to change the list view wich is standard on the single venue page to photo view for the upcoming events on the single venue page.

    Thanks for help.

    #1301035
    Victor
    Member

    Hi Thomas!

    I’d be happy to help! 🙂

    First off, I do want to note that we are fairly limited in how much we can support custom development questions like this. That said, I’d be happy to at least point you in the right direction as best I can.

    The tribe_venue_upcoming_events() function is located at /wp-content/plugins/events-calendar-pro/src/functions/template-tags/venue.php

    You can customize the output of that function using the ‘tribe_venue_upcoming_events’ filter. Here’s an example of how to use the filter, which you should place in your theme’s functions.php file:

    add_filter ( 'tribe_venue_upcoming_events', 'custom_tribe_venue_upcoming_events' );
    function custom_tribe_venue_upcoming_events( $html ) {
    //do something with $html or create your own $html output
    //return the result
    return $html;
    }

    I hope that helps! Let me know if any other questions.

    Best!
    Victor

    #1320603
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Venue Page – How to change from list view to photo view’ is closed to new replies.