• Resolved jeromeramone

    (@jeromeramone)


    Steps to replicate:

    1. Activate the “Twenty Seventeen” WordPress theme. Deactivate all plugins except The Event Calendar
    2. Create a directory in the theme folder called “tribe-events”
    3. In that folder, put a copy of the file:
    wp-content/plugins/the-events-calendar/src/views/single-event.php
    4. View any event page, and the google map is visible.
    5. Open the above file, and replace lines 69-71:
    <?php do_action( ‘tribe_events_single_event_before_the_meta’ ) ?>
    <?php tribe_get_template_part( ‘modules/meta’ ); ?>
    <?php do_action( ‘tribe_events_single_event_after_the_meta’ ) ?>
    with this:
    <?php echo(tribe_get_embedded_map(get_the_ID(), 300, 300, true)); ?>
    6. View any event page, and the google map is NOT visible.

    When I inspect the source, I see a div with the id “tribe-events-gmap-0” and a lot of html code in it… but the browser displays no map.

    I do have a google API key installed.

    Do you know what might be happening?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jeromeramone

    (@jeromeramone)

    hmm, a glance at this forum indicates that almost none of the topics are resolved. Nearly all of them have zero responses. Maybe a waste of time to post here?

    Plugin Contributor Victor Zarranz

    (@vicskf)

    Hi @jeromeramone!

    I’m sorry for the delay in getting back to you.

    If you see the html for the map being rendered and no console errors, then that might be an issue with the styles.

    Try inspecting the page and adjusting the height for the map container and see if the map shows.

    If you still experience the issue, please share a link to that page so we can have a closer inspection and try to help out.

    Let us know how it goes.

    Thanks,
    Victor

    Plugin Contributor Victor Zarranz

    (@vicskf)

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘tribe_get_embedded_map does not work’ is closed to new replies.