Organizer email links include html code

Home Forums Calendar Products Events Calendar PRO Organizer email links include html code

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #996771
    Lynn Shield
    Participant

    This reply is private.

    #996911
    Geoff
    Member

    Hi Bud,

    Here’s what I did to get the email links working with the Twenty Fifteen theme as my active theme:

    • Make a copy of the organizer.php template. It is located at /plugins/the-events-calendar/views/modules/meta/organizer.php.
    • Make a new folder in your theme directory called tribe-events
    • Make a new folder in that one called modules
    • Make a new folder in that one called meta
    • Drop the copied organizer.php file in that last folder

    Now that the template is in the theme folder, it can modified to suit our needs. In this case, that would be changing this line (line 55 for me):

    <?php echo esc_html( $email ); ?>

    …to this:

    <a href="mailto:<?php echo esc_attr( $email ) ?>"><?php echo esc_html( $email ); ?></a>

    That (and removing the previous snippet from functions.php) gets me the linked email address on the single event page–does that work for you as well?

    Please do go ahead and open a new thread for that other issue you noted if you haven’t already.

    Thanks!
    Geoff

    #997098
    Lynn Shield
    Participant

    That did it! Thanks Geoff. I’ll start a new thread on the nav issue.

    Bud

    #997217
    Geoff
    Member

    Awesome! Thanks for sticking with me there and for letting us know about the issue with the tutorial in the first place. I really appreciate that.

    We’ll see you in the next thread. 🙂

    Geoff

Viewing 4 posts - 16 through 19 (of 19 total)
  • The topic ‘Organizer email links include html code’ is closed to new replies.