Home › Forums › Calendar Products › Events Calendar PRO › Organizer email links include html code
- This topic has 18 replies, 2 voices, and was last updated 10 years, 8 months ago by
Geoff.
-
AuthorPosts
-
August 11, 2015 at 7:02 am #995022
Lynn Shield
ParticipantAll of my organizer email links are displaying as Email: [email protected]
August 11, 2015 at 8:35 am #995132Geoff
MemberHey 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!
GeoffAugust 11, 2015 at 9:45 am #995167Lynn Shield
ParticipantThis reply is private.
August 11, 2015 at 4:03 pm #995250Geoff
MemberThanks, 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!
GeoffAugust 13, 2015 at 4:49 pm #995918Lynn Shield
ParticipantThis reply is private.
August 14, 2015 at 8:07 am #996055Geoff
MemberNice 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!
GeoffAugust 14, 2015 at 9:29 am #996086Lynn Shield
ParticipantThis reply is private.
-
This reply was modified 10 years, 8 months ago by
Lynn Shield.
August 14, 2015 at 11:51 am #996131Geoff
MemberGood 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
August 14, 2015 at 5:51 pm #996221Lynn Shield
ParticipantThis reply is private.
August 14, 2015 at 6:01 pm #996222Lynn Shield
ParticipantThis reply is private.
August 14, 2015 at 6:05 pm #996224Lynn Shield
ParticipantThis reply is private.
August 17, 2015 at 8:37 am #996605Geoff
MemberHey 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
August 17, 2015 at 9:34 am #996635Lynn Shield
ParticipantThis reply is private.
August 17, 2015 at 11:20 am #996673Lynn Shield
ParticipantThis reply is private.
August 17, 2015 at 2:40 pm #996750Geoff
MemberHi 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 -
This reply was modified 10 years, 8 months ago by
-
AuthorPosts
- The topic ‘Organizer email links include html code’ is closed to new replies.
