Home › Forums › Calendar Products › Events Calendar PRO › Venue Page – How to change from list view to photo view
- This topic has 5 replies, 2 voices, and was last updated 8 years, 9 months ago by
jazzinconcert.
-
AuthorPosts
-
June 17, 2017 at 9:29 am #1299591
jazzinconcert
ParticipantHi there,
i was wondering if it is possible to change the list view on the venue page to photo view?
Thanks
ThomasJune 19, 2017 at 10:20 pm #1300310Victor
MemberHi 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,
VictorJune 20, 2017 at 1:49 am #1300368jazzinconcert
ParticipantHi 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.
June 21, 2017 at 7:39 am #1301035Victor
MemberHi 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!
VictorJuly 13, 2017 at 9:35 am #1320603Support 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 ‘Venue Page – How to change from list view to photo view’ is closed to new replies.
