6min

Embedding iframes in your markers

Overview

WP Go Maps Basic version 8.1.13 and above strip away any tags that are considered to be unsafe.

β€˜wp_kses_post’ considers iframes to be β€˜unsafe’ and thus are stripped away. This article will show you how to embed an iframe in WP Go Maps (specifically focuses on the marker descriptions) using the iframe plugin.

Prerequisites

The Following Plugin/s need to be installed and active in order to embed iframes into your marker descriptions

Install and activate the β€˜iframe’ plugin

Navigate to

WordPress Dashboard -> Plugins -> Add New

In theΒ SearchΒ box at the top-right of the screen, type the word β€œiframe” and press {Enter}.

Click theΒ Install NowΒ button shown in the screenshot below. The plugin will install without any intervention.

Install iframe
Install iframe

Once installed, click theΒ ActivateΒ button shown in the screenshot below. The plugin will then activate.

Activating the iframe plugin
Activating the iframe plugin

Add the Shortcode to the marker description

Navigate to your Map Editor to add or edit a marker

WP Go MAPS -> Maps (edit your chosen map) -> Markers

Add your iframe to your marker description in the respective shortcode format: [iframe src=”url” title=”descriptionβ€œ]

Add iframe to marker description
Add iframe to marker description

Save your marker and the iframe should then be displayed in your marker.

iframe example
iframe example

ο»Ώ

Updated 28 Jun 2022
Did this page help you?
Yes
No