Add "website" link to the loop listing page

Home Forums Calendar Products Events Calendar PRO Add "website" link to the loop listing page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1096884
    Joshua
    Participant

    Event (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!

    #1096909
    Joshua
    Participant

    Alright 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.

    #1096991
    Joshua
    Participant

    Worked through the last item listed here for including the loop/archive display
    This case being within – [your-theme]/tribe-events/pro/map/single_event.php

    Added 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!

    #1097026
    Brian
    Member

    I 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!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add "website" link to the loop listing page’ is closed to new replies.