WordPressブログにて、Googleマップを埋め込む方法をご紹介します。
手順
![GoogleマップをWordPress記事に埋め込む方法01](http://yurukita.com/wp-content/uploads/2021/03/googlemap-insert01.png)
googleにて、埋め込みたい建物を検索します。
![GoogleマップをWordPress記事に埋め込む方法02](https://yurukita.com/wp-content/uploads/2021/03/googlemap-insert02.png)
「地図」のタブを選択します。
![GoogleマップをWordPress記事に埋め込む方法03](https://yurukita.com/wp-content/uploads/2021/03/googlemap-insert03.png)
もしくは地図の画像をクリックでもOKです。
![GoogleマップをWordPress記事に埋め込む方法04](https://yurukita.com/wp-content/uploads/2021/03/googlemap-insert04.png)
「共有」をクリックします。
![GoogleマップをWordPress記事に埋め込む方法05](https://yurukita.com/wp-content/uploads/2021/03/googlemap-insert05.png)
「地図を埋め込む」をクリックします。
![GoogleマップをWordPress記事に埋め込む方法06](https://yurukita.com/wp-content/uploads/2021/03/googlemap-insert06.png)
「HTMLをコピー」をクリックすると、クリップボードにコピーされます。
![GoogleマップをWordPress記事に埋め込む方法07](https://yurukita.com/wp-content/uploads/2021/03/googlemap-insert07.png)
WordPressの記事投稿画面にて「カスタムHTML」を選択し、先ほどコピーしたHTMLを貼り付けます。
![GoogleマップをWordPress記事に埋め込む方法08](https://yurukita.com/wp-content/uploads/2021/03/googlemap-insert08.png)
デフォルトでは「width=”600″ height=”450″」のサイズになっていますので、この数字部分を変更することで自分の好きなサイズに変更が可能です。width=横幅、height=高さとなります。
width=100%とすることで、横幅いっぱいに表示されます。
![GoogleマップをWordPress記事に埋め込む方法08](https://yurukita.com/wp-content/uploads/2021/03/googlemap-insert09.png)
プレビュー画面にて確認してみると、地図が表示されました。