Home › Forums › Calendar Products › Events Calendar PRO › Moving Google Maps / Calendar links to top of single-event.php?
- This topic has 7 replies, 3 voices, and was last updated 9 years, 1 month ago by Brian.
-
AuthorPosts
-
January 30, 2015 at 11:16 am #939083Sean SullivanParticipant
Hello! First time buyer. Happy to have access to this support.
I’d like to move the “+ Google Maps” and “Add to Calendar” links to the top of my single-event.php. Specifically, so they display after the event date and time.
<!-- Notices --> <?php tribe_events_the_notices() ?> <?php the_title( '<h2 class="tribe-events-single-event-title summary entry-title">', '</h2>' ); ?> <div class="tribe-events-schedule updated published tribe-clearfix"> <?php echo tribe_events_event_schedule_details( $event_id, '<h3>', '</h3>' ); ?> <?php if ( tribe_get_cost() ) : ?> <span class="tribe-events-divider">|</span> <span class="tribe-events-cost"><?php echo tribe_get_cost( null, true ) ?></span> <?php endif; ?> <strong>--> Google Maps link here --> Add to Calendar link here</strong> </div>
(Clearly, my next step should be a WordPress hooks and filters tutorial).
Rough screen of what we’d like to accomplish:
January 30, 2015 at 2:02 pm #939125BrianKeymasterHi,
Thanks for using our plugins. I can help you out here.
Actually for moving things we have our themer’s guide:
https://theeventscalendar.com/knowledgebase/themers-guide/
That shows you how to move event templates to your theme to safely edit them there.
You will find the function that calls the map template here:
the-events-calendar\views\modules\meta.php
The map itself is in this template:
the-events-calendar\views\modules\meta\map.php
Does that help you figure out how to take that function and move it to where you would like?
Let me know and I can try to answer a question or two.
Thanks
January 30, 2015 at 6:56 pm #939159Sean SullivanParticipantHi Brian –
Thanks for the note. The solution is:
*code removed by admin
I was getting stuck because the iCal function — adding ‘<?php echo tribe_get_single_ical_link();?>’ — wasn’t generating a proper link. In another forum post, I saw that it’s necessary to add the ‘ “tribe-events-ical” ‘ class to output the link.
January 30, 2015 at 6:58 pm #939160Sean SullivanParticipantBrian: I’d appreciate if you could also edit my post to put the code in
the proper tags.'
January 31, 2015 at 11:44 am #939206BrianKeymasterHi,
glad you got it working the code did not come across correct so I removed it to not confuse people.
The best way to share coding is to either put it in a pastebin or as a gist and share the link that way the formatting comes across correct.
Thanks!
February 26, 2015 at 11:25 pm #945124JohnParticipantI am knew to WordPress 7 Event Calendar Pro and noticed that the Google Maps used will no longer be supported and recommends changing to Maps Marker Pro.
Will ECP work with MMP ?
March 2, 2015 at 8:16 am #945471BrianKeymasterHi John, we are still using Google Maps in the Events Calendar I have not heard anything this week that would change that and I in on a work trip with the entire team. And ECP does not support or work with MMP.
If you have any more questions related to this please create a new ticket so we can help you one on one.
Thanks
March 19, 2015 at 2:40 pm #949495BrianKeymasterSince I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘Moving Google Maps / Calendar links to top of single-event.php?’ is closed to new replies.