Organizer email links include html code

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

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #995022
    Lynn Shield
    Participant

    All of my organizer email links are displaying as Email: [email protected]

    #995132
    Geoff
    Member

    Hey Bud and sorry for the trouble here!

    Would it be possible to get some more information? For example, is there a link where we can see the issue? Also, have you made any customizations to the calendar, such as template overrides or functions?

    It would also be great if you could include your system information here (feel free to mark the reply as private), which you can get by heading to Events > Settings > Help at the bottom of the screen.

    Thanks!
    Geoff

    #995167
    Lynn Shield
    Participant

    This reply is private.

    #995250
    Geoff
    Member

    Thanks, Bud! I appreciate the additional info. 🙂

    First thing I notice is that there are a couple of Javascript conflicts in the console when checking out the site, one of which I see from time to time:

    You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

    It’s tough to tell if resolving that will also resolve the email link, but I have seen cases where that conflict causes seemingly unrelated issues and would be worth clearing out here. In this case, it looks like the theme or another installed plugin is adding an additional call to the Google Maps API than the one that The Events Calendar needs for it’s own mapping functionality.

    I would suggest following the steps outlined here to determine if that is indeed the case or if there is some other conflict at play that’s not quite as obvious. I’m not getting the same issue when I revert to the default WordPress Twenty Fifteen theme and deactivate all other plugins, except for The Events Calendar and PRO, so seeing if you still have the issue in those same conditions would be a good place to start.

    Thanks a ton!
    Geoff

    #995918
    Lynn Shield
    Participant

    This reply is private.

    #996055
    Geoff
    Member

    Nice work! OK, so it does indeed look like the theme itself is making an additional call to the Google Maps API than the one that is already called by The Events Calendar.

    You can dequeue either script. If you choose to dequeue the plugin’s script then this is what you want to use: tribe_events_google_maps_api.

    If you choose to dequeue the theme’s script, then you can do it with a conditional statement that ensures it is only removed on calendar pages. So, something like this:

    [php]
    function dequeue_googlemaps() {

    if ( is_tribe_event && is_single() ) {
    wp_dequeue_script( ‘the-theme-script-handle’ );
    }

    }

    add_action( ‘wp_print_scripts’, ‘dequeue_googlemaps’, 100 );
    [/php]

    Cheers!
    Geoff

    #996086
    Lynn Shield
    Participant

    This reply is private.

    • This reply was modified 10 years, 8 months ago by Lynn Shield.
    #996131
    Geoff
    Member

    Good question and sorry for not including that detail! It can go in your theme’s functions.php file but might be best if it is in a child theme in case there are any updates to your theme–that will prevent any changes from getting lost. 🙂

    Geoff

    #996221
    Lynn Shield
    Participant

    This reply is private.

    #996222
    Lynn Shield
    Participant

    This reply is private.

    #996224
    Lynn Shield
    Participant

    This reply is private.

    #996605
    Geoff
    Member

    Hey Bud,

    Ah, thanks for the extra info! I didn’t realize you were using that snippet in your functions.php file and that helps a ton.

    Turns out that snippet is impacted by some recent changes to the plugin that escape characters. Here’s a workaround that should clear things up and we’ll have to update that tutorial as well.

    Let me know if that does the trick. 🙂

    Geoff

    #996635
    Lynn Shield
    Participant

    This reply is private.

    #996673
    Lynn Shield
    Participant

    This reply is private.

    #996750
    Geoff
    Member

    Hi Bud,

    Shoot, sorry to hear that didn’t work out! I followed the same steps on my own site and they seemed to work. Is it possible you still have the snippet in your functions.php file and still need to remove it?

    Let’s definitely keep that other issue you noted on the radar and please do open a new thread if it continues to be a problem. In the meantime, I would suggest testing for conflicts just to confirm the source of the issue.

    Thanks!
    Geoff

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