Home › Forums › Calendar Products › Events Calendar PRO › Re-order Single Venue template
- This topic has 3 replies, 2 voices, and was last updated 6 years, 9 months ago by Tim.
-
AuthorPosts
-
July 14, 2017 at 9:22 am #1321251TimParticipant
I started this thread a while back and totally missed the response (sorry guys!) https://theeventscalendar.com/support/forums/topic/single-venue-upcoming-events/
I need to move the upcoming events from the single venue template further up the order of the page – currently I have it in this order:
1. Standard venue elements
2. Venue description
3. Custom field 1
4. Custom field 2
5. Custom field 3
6. Upcoming eventsBut I need it to be:
1. Standard venue elements
2. Venue description
3. Upcoming events
4. Custom field 1
5. Custom field 2
6. Custom field 3I’ve tried editing the single venue template but I can’t get the upcoming events to sit after the description but before my custom fields, I can only get it so sit right at the bottom of the page – here’s an example: http://www.experienceoxfordshire.org/venue/the-old-fire-station/
I’d also like to know how to limit the number of upcoming events shown on the single venue page to 3 😀
July 17, 2017 at 8:58 am #1322143AndrasKeymasterHello Tim,
Thanks for getting back in touch!
I believe this is the file for which you need to do a template override:
wp-content\plugins\events-calendar-pro\src\views\pro\single-venue.php
Lines 102-109 are the ones handling the upcoming events. That is what you likely need to move to a new position.
If that doesn’t do it, then my hunch is the additional fields use the hook on line 103:
<?php do_action( 'tribe_events_single_venue_before_upcoming_events' ) ?>
If that is the case, then simply move this line below the upcoming events (line 107).
Does this help?
Cheers,
AndrasAugust 8, 2017 at 9:35 am #1332210Support DroidKeymasterHey 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 ‘Re-order Single Venue template’ is closed to new replies.