Home › Forums › Calendar Products › Events Calendar PRO › Add "website" link to the loop listing page
- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by
Brian.
-
AuthorPosts
-
April 1, 2016 at 6:03 am #1096884
Joshua
ParticipantEvent (loop) listing not updating in child theme.
I’ve attempted multiple options to debug this issue:- Deleted and re-installed Events Calendar Plug-in.
- Modifying the actual source file (plugins/the-events-calndar/src/views/list/single-event.php) to see if something will show up.
- Replacing the file using an FTP (rather than DreamWeaver, which is what I typically use).
- Disabling plugins and reverting to the 2014 theme
- I have the correct file structure outlined – a new template file within the child theme at the specified path:
[your-theme]/tribe-events/list/single-event.php
A very odd thing about this is that I was able to edit the single-event.php file that is contained within the child theme/tribe-events location without any issue!
File structure and code example can be found here: https://flic.kr/s/aHsku6oeiy
Beyond adding the website link to the archive display (loop listing), I’m looking to make modifications to the meta display as well: have details and venue display together and then have the organizer information display outside of that grouping.
Any and all help is much appreciated!
April 1, 2016 at 7:22 am #1096909Joshua
ParticipantAlright I have made updates and see where my issue was… I’m using the pro version and was in the incorrect folder structure! Bone-head move on my part to be using list/single-event.php and not the pro/map/single-event.php file.
I’m still open to any guidance in getting the website link to display on the loop listing (for map and other views), if there is one entered via the meta data in the CMS.
April 1, 2016 at 8:54 am #1096991Joshua
ParticipantWorked through the last item listed here for including the loop/archive display
This case being within – [your-theme]/tribe-events/pro/map/single_event.phpAdded the website call, in this case we are using it as a “registration” link which was added as a way to quickly register for events. Code below:
$website = tribe_get_event_website_link();<!-- Website button --> <?php // Event Website if ( ! empty( $website ) ) : ?> <div class="register-btn"><?php echo $website; ?></div> <?php endif ?>Hope that helps any wayward souls, like me, when making these theme updates!
April 1, 2016 at 9:22 am #1097026Brian
MemberI am glad to see you were able to figure it out.
I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.
Thanks!
-
AuthorPosts
- The topic ‘Add "website" link to the loop listing page’ is closed to new replies.
