Based on the map service offered by Google Maps, a map added to your website might serve to quickly exhibit a place to your viewers. This part of our WordPress tutorial will demonstrate both how to precisely implement the map code on your website so that the map will display and how to produce the code needed for the map to be shown.
You must find the location you want to display on your website on the official Google Maps page in order for the map code to be generated. The map of Kansas City, Kansas, USA, will be used for the purposes of this tutorial.
Use the Share link in Google Maps:
Click on Embed a map, and then copy the HTML code of the map so you can embed it in your WordPress site:
step
How to Add the Map Code in WordPress
Once you have the code, go to Appearance → Widgets in your WordPress admin area after logging in.
On the widgets' home page, you must decide where you want the map to be displayed while taking into account the supported locations for your widgets. For us, the menu area that is supported is the Sidebar.
Simply add a block widget for Custom HTML to the sidebar or other area where you want the map to appear now. Let's show the map in the Sidebar area as an example. We are introducing a Custom HTML type widget to serve this purpose.
Paste the already copied map code (from Google Maps) into the widget's content field, as seen above, for it to become active. When you are finished, simply click the Update button, and your widget and map will be stored and displayed on your website:
Congratulations, you have successfully added the Google Map service to your website!
To provide you with the best experience, our website uses cookies. By continuing to browse the site you are agreeing to our
Cookie Policy.
Your Privacy and Cookies Settings
Our sites use tools, such as cookies, to understand how you use our services and to improve both
your experience and our advertising relevance. Here, you can opt-out of such tracking:
Social
Social media features, such as the ‘Facebook Like/Share button’, Widgets or interactive mini-programs run on our
site to incorporate social and customer feedback feeds. Some of them use cookies for behavioral analytics
and advertising and/or market research.
Support
FastComet Live Chat support requires cookies for behavioral analytics needed to address pre-sales/support inquiries.
Disabling this cookie will limit you from receiving assistance from the Customer Service team via FastComet's LiveChat services.
Statistics and Advertising
We use digital tools, such as Google Analytics, to track web traffic and the effectiveness of our digital
advertising outreach efforts. This helps us identify more relevant ads to consumers and to improve
the efficiency of our marketing campaigns.
Essential
Cookies required for essential services and functionality such as login forms, shopping cart integration,
and access control. Without them, our website cannot function properly and we cannot provide any service.
Opt-Out is not available.
By continuing to browse the site you are agreeing to our
and Cookie Policy.