Adding date and time of event to google maps info window on events page

Home Forums Calendar Products Events Calendar PRO Adding date and time of event to google maps info window on events page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1288444
    Mike
    Participant

    Hi there!

    I have customized some of the code in tribe-events-ajax-maps.js to include address, name and url into the google maps info window, events page, but it doesn’t look like this function has the ability to get the events date and time and also display that in the info window. Have you seen this customization done before? Can you share guidance on how to do so?

    Thanks so much for your help!

    #1289146
    Neal
    Moderator

    Hey Jonah!

    Thanks for reaching out. It’s cool that you’re trying to customize your Google Maps. Sadly, I don’t see anything specific about this as a customization in our Extensions library.

    It sounds like you want to do, since you are on a single event page, is grab the date and time from the page itself. You can do that with jQuery as follows:

    var startDate = jQuery('.tribe-event-date-start).text();
    var time = jQuery('.tribe-event-time').text();
    

    You may need to format that info more to your liking, but it should help you get started with adding that information in.

    Happy customizing!
    Neal

    #1299200
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding date and time of event to google maps info window on events page’ is closed to new replies.