Since we previously discussed how to embed Google Maps using Elementor, what if we want to add Google Maps to WordPress without using a plugin?
Actually, adding Google Maps to WordPress without a plugin is very easy, but there are certainly some drawbacks, such as the lack of customization features for the added map, or perhaps you might need to add your own HTML code to adjust this embed.
You might be thinking about using the Embed feature available in the WordPress Block Editor and just adding the Google Map link, but it turns out that feature does not work normally, so you can follow these steps
1. Get the Embed Code
To get the embed code, you can first access Google Maps using a browser, then search for the location you want to add to your website page, for example, here we are using the IKN Ceremony Field location
From the location details, click the share button to get the embed code
When the share pop-up appears, do not just copy the link used for sharing, but open the tab embed a map
Here you can choose the map size you want to use, for example, Small, Medium, Large, or even a custom size. Here we will use a custom size of 300x300, and if you are curious about the size result, you can click the button Preview actual size, then when it is suitable, you can copy the HTML code by clicking the link Copy HTML
2. Add the Code to a Post or Page
Now you can open your WordPress dashboard page or another section, for example, footer customization (but here the example is on a page).
Once you are on the WordPress block editor page, add the block Custom HTML
Paste the embed code that you previously copied from Google Maps
When the page content is in accordance with what you are going to create, you can view the page preview first, and if successful, the result will be more or less like this
How is it? Very easy, right, to add Google Maps in WordPress without a plugin. If you want to do more customization, you can use a plugin to add Google Maps, for example by using Elementor.
COMMENTS
Loading...