Mailto link setup
-
I’d like to have the person’s name in my the-events-calendar.php link to their website, like it does in single.php
also, to have the email be a mailto link.
I have a customized Events list: https://shamanscircle.com/workshops/workshop-welcome/
I’ve customized line 80 of the-events-calendar.php for the list as so, for the get contact, email & phone.
<style= "font-style:normal""text-align: left; ">Contact: '.tribe_get_organizer(get_the_ID()).'</><br><style= "font-style:normal""text-align: left; ">'.tribe_get_organizer_email(get_the_ID()).' '.tribe_get_organizer_phone(get_the_ID()).'</></br>
I see the string in single.php… web link:
<?php if ( tribe_get_organizer_link( get_the_ID(), false, false ) ) : ?> <dt class="event-label event-label-organizer"><?php _e('Contact:', 'tribe-events-calendar') ?></dt> <dd class="vcard author event-meta event-meta-author"><span class="fn url"><?php echo tribe_get_organizer_link(); ?></span></dd> <?php elseif (tribe_get_organizer()): ?> <dt class="event-label event-label-organizer"><?php _e('Contact:', 'tribe-events-calendar') ?></dt> <dd class="vcard author event-meta event-meta-author"><span class="fn url"><?php echo tribe_get_organizer(); ?></span></dd> <?php endif; ?>
and mailto:
<?php if ( tribe_get_organizer_email() ) : ?> <dt class="event-label event-label-email"><?php _e('Email:', 'tribe-events-calendar') ?></dt> <dd itemprop="email" class="event-meta event-meta-email"><a href="mailto:<?php echo tribe_get_organizer_email(); ?>"><?php echo tribe_get_organizer_email(); ?></a></dd> <?php endif; ?>
Thanks
https://www.ads-software.com/extend/plugins/the-events-calendar/
[No bumping, thank you.]
- The topic ‘Mailto link setup’ is closed to new replies.