n6cloud blog
  • Web Hosting
  • Site
  • Security
  • Online Marketing
  • General
  • Web Hosting
  • Site
  • Security
  • Online Marketing
  • General
n6cloud blog
  • Web Hosting
  • Site
  • Security
  • Online Marketing
  • General

How to Embed Google Maps (embed google map in HTML – WordPress)

Table of Contents

  • How to embed Google Map in html
  • How to make Google Map responsive in html
  • How to embed google map in WordPress
    • WP Google Maps
    • CP Google Maps

Google map is a powerful navigation platform with millions of daily users. Of course, many different maps and navigators exist, but Google map is better than the others.

There are different ways to embed Google Maps; in this article, we want to discuss how to embed Google Maps in WordPress and how to embed Google Maps in html; follow the article to know more.

 

How to embed Google Map in html

Embedding Google Maps in HTML needs multi-steps; you should select your address on the map, copy the code and paste it on your website.
The notable point is that this way uses for embedding static maps.
There are a few steps for this method:

  1. Go to the Google Maps
  2. Search for an address that you want to embed
  3. Click on the share button; after clicking, you have two options, share a link and embed a map; you can click on each of them you want.

Copy the embed code and paste the iframe where you want in your HTML file.
Until here, you understood how to embed Google Maps in html using iframe.

 

how to embed google map in html

 

how to embed google map in html

 

If you want to know how to resize a photo in photoshop without losing quality , click and read more.

 

How to make Google Map responsive in html

Make your pages responsive, meaning all components revise and changed their size to fit on their screens. That can help you to get better time-on-page from users. Continue the article to get more information about how to embed Google Maps on website (responsive). To embed Google Maps into website using iframe, first of all, you must put the iframe in a div tag and use the following HTML and CSS code:

 

HTML:

<div class="google-map">
<iframe src="[your unique google URL] " width="600" height="450" style="border:0;"
allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade">
</iframe>
</div>

 

CSS:

.google-map {
padding-bottom: 50%;
position: relative;
}

.google-map iframe {
height: 100%;
width: 100%;
left: 0;
top: 0;
position: absolute;
}

 

 

Related: CSS hover animation

 

How to embed google map in WordPress

You must follow the steps that we have said top to answer the question of how to embed a google map in WordPress:

  1. Go to the Google Maps site
  2. Search for an address
  3. Copy the embed code and paste it into your WordPress editor

Another way you can embed Google Maps in WordPress is using plugins; In the following, we want to introduce plugins for answering how to add google Maps in WordPress.

 

WP Google Maps

WP Google Maps is the most popular plugin that gives you features such as markers, polygons, bike layers, satellite views, etc.

 

WP Google Maps

 

CP Google Maps

CP Google Maps is another plugin that allows you to set up and embed your map on all your pages on WordPress; even you can use Google Maps with multi-languages.

 

CP Google Maps

 

Conclusion

Embedding Google Maps into the website is an important and useful thing you must know to get better responses from users; in this article, we describe how to add google maps to your website with html code (iframe), into your WordPress and with plugins.


What are Web Push Notifications? | Important TipsPrevWhat are Web Push Notifications? | Important TipsFebruary 12, 2023
What is Cloud Native? | Cloud Native BenefitsFebruary 22, 2023What is Cloud Native? | Cloud Native BenefitsNext

Related Posts

General

Configure Ubuntu Firewall with UFW

Table of Contents ToggleUnderstanding Firewalls and UFWInstalling UFW on...

N6 Cloud June 30, 2024
SecurityGeneral

What is U2F Authentication? | Benefits of U2F

Table of Contents ToggleWhat is U2F authentication?How does U2F work?Benefits of...

N6 Cloud April 4, 2023

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories
  • General 74
  • Online Marketing 21
  • Security 16
  • Site 36
  • Uncategorized 31
  • Web Hosting 69
Recent Posts
  • how to install a premium wordpress theme
    how to install a premium wordpress theme
    March 4, 2025
  • How RAID Technology Enhances Web Hosting Performance
    How RAID Technology Enhances Web Hosting Performance
    March 4, 2025
  • Why Choose Dedicated Server Hosting
    Why Choose Dedicated Server Hosting
    March 4, 2025
  • How to make an eCommerce website
    How to make an eCommerce website
    March 1, 2025
  • Troubleshooting WordPress Hosting Issues
    Troubleshooting WordPress Hosting Issues
    February 26, 2025

Copyright © 2020 N6 Cloud. All Rights Reserved