Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The topic ‘Google Maps marker auto popup?’ is closed to new replies.
Tagged: enfold, google maps, marker, pop-up
I couldn’t see this explained anywhere:
How do i make the google marker auto display it’s contents, like you have done here?
http://kriesi.at/themedemo/?theme=enfold
/pages/contact
Thanks!
anyone? ^_^
please can someone help :(
Hey!
You just need to insert some content into the “Marker Tooltip” field and then a new option (a checkbox) will appear where you can select if the tooltip should be opened or closed by default: http://www.clipular.com/c/4537357877379072.png?k=_jhSP0lkBqarY2CfXZu6dS7VLp4
Best regards,
Peter
I don’t have that option in the “Enfold Child Google Maps Widget”
…it’s labled: “Info Bubble Content:” :/
Thanks for the help!
Hey!
Oh, the google maps widget does not support this option. However you can use this code to open the tooltip automatically:
add_filter('avia_google_maps_widget_config','avia_google_maps_change_widget_config', 10, 1);
function avia_google_maps_change_widget_config($config){
$config = str_replace('google.maps.event.addListener','infowindow.open(map,marker); google.maps.event.addListener',$config);
return $config;
}
Insert the code at the bottom of enfold/functions.php or place it into your child theme functions.php file.
Cheers!
Peter
Thank you, How were you originally proposing that a google map is inserted into the theme?