The UberMenu Google Maps shortcode allows you to insert geocoded map locations into your menu.
To use Google Maps you need to include the API, which can be done by enabling Load Google Maps in Appearance > UberMenu > Descriptions, Shortcodes, Widgets
This map will automatically be recentered when the submenu is opened.
Shortcode format
[ubermenu-map address="Boston, MA" zoom="15" title="My Title"]
Map shortcode parameters
lat | The latitude of the coordinates to show on the map. This will load immediately. | 40.4166909 |
lng | The longitude of the coordinates to show on the map. This will load immediately. | -3.7003454 |
address | This address is optional and will be geocoded and displayed – it sends an extra request to do this, so if the geocode fails the original lat and long coordinates will be displayed. |
5 Calle de Sevilla, Madrid, Spain |
zoom | The level to which the map should be zoomed to begin with. | 15 |
title | The text to display when hovering over the map marker. | Agility, Inc |
width | Width of the map. Defaults to 100%. | 200px |
height | Height of the map. Defaults to 200px. | 200px |
Other Notes
- Twenty Eleven breaks embedded Google Maps