Support

Home Forums Event Espresso Premium Loading gmap on custom page template

Loading gmap on custom page template

Posted: May 9, 2017 at 10:41 pm

Viewing 1 reply thread


carladmin

May 9, 2017 at 10:41 pm

Hi There,

I am looking to load a Venue’s google map using the espresso_venue_gmap() function – on a custom page template.

I pass the ID of the venue to the funciton (i.e espresso_venue_gmap($venue -> ID)) and an ee-map div is created, however no map is displayed.

Will I need to load specific Event Espresso scripts on-page?

Thanks


Tony

  • Support Staff

May 10, 2017 at 5:18 am

Hi there,

Yes you’ll need to load the google maps js scrtips.

You can use:

add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 );

Before the call to get_header()/wp_head()

Viewing 1 reply thread

The support post ‘Loading gmap on custom page template’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso