With the map block you can add a map to any post or page on your site.
In this guide
In order to add a map block, click on the Block Inserter + icon.
You can also type /map and hit enter in a new paragraph block to add one quickly.
For more information, visit our detailed instructions on adding blocks.
Each block has its own block-specific controls that allow you to manipulate the block right in the editor. The map block offers the center alignment, add marker and more option controls.
The map will load with a text field for you to add a location marker.
Type the location you want to display on the map. This can be as general or specific as you wish, and the location will autocomplete as you type. Click the correct location to add it to your map.
You can then click on the red marker symbol to edit the title and caption of the marker.
Note that editing the address in the caption field here will not change the position of the marker, only what text is displayed on your map when the marker is clicked.
You can add additional location markers to the same map, for example, if you have a chain of restaurants, and you want to display all of their locations on one map.
To add a location marker, click the Add a Marker button and enter the location details as before.
When you add more than one location marker, the map will zoom out to display all markers.
When you select a block, you will find additional block settings in the right sidebar. If you do not see the sidebar, you may need to click the Settings icon in the top-right corner to bring up the settings. This icon looks like a square with two uneven columns:
Choose the style of the map on your site. Options include default, muted, satellite view, and terrain.
Note: If terrain is selected, you will see options that differ from what is mentioned in this guide. Those settings will disappear if you switch the map back to one of the other three options.
You can also choose the color of the location markers. Either choose from the suggested colors or pick a custom color.
The Map Settings give you different ways to customize the appearance of the map:
Height in pixels: Set the height of the map.
Zoom level: Set how much you want the map to be zoomed in. This can be changed when showing one marker on the map only.
Scroll to zoom: Enable this option if you want your viewer to be able to use their device’s scroll function to zoom in and out on the map.
The Markers section lets you edit all of your markers. Editing a marker here works exactly the same as if you click on the marker itself and edit there, but using these settings may be easier if you have a lot of markers to edit. It’s also possible to delete markers in this section.
The Marker Caption area only supports text. If you need to have some clickable links, an alternative option is to create a custom Google Maps that you can then embed on the site.
For more, visit our detailed instructions on Advanced settings.