Title: Embed Google Map into Custom HTML
Last modified: June 15, 2024

---

# Embed Google Map into Custom HTML

 *  Resolved [peebee10](https://wordpress.org/support/users/peebee10/)
 * (@peebee10)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/embed-google-map-into-custom-html/)
 * Hello.
 * I’m using pure custom HTML for my coming soon page.
 * I’m trying to embed a Google Map iframe into the custom HTML editor. The editor
   accepts and saves the embed code (the iframe is still visible in the editor after
   saving) but the embed code itself is stripped on page load in the browser. No
   errors – just code is stripped.
 * I tried an iframe plugin which allows for [iframe src=……] but that didn’t work
   either.
 * Any idea how to resolve? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Alexandru Tapuleasa](https://wordpress.org/support/users/talextech/)
 * (@talextech)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/embed-google-map-into-custom-html/#post-17826925)
 * WordPress security guidelines require sanitizing all HTML output so there’s a
   function in framework/init.php wp_kses_wf() around line 130 which handles that.
 * Try adding another tag block for iframe with all the attributes you need like
   src. Something like:
   `$allowed_tags['iframe'] = array('style' => true,'class'
   => true,'id' => true,'data-*' => true,'src' => true,);
 *  Thread Starter [peebee10](https://wordpress.org/support/users/peebee10/)
 * (@peebee10)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/embed-google-map-into-custom-html/#post-17828068)
 * Thanks for the quick reply. I figured it was WordPress stripping the code, I 
   just didn’t know how to get around it. Your solution sounds logical. I’ll give
   it a go. 
   Thanks and very much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Embed Google Map into Custom HTML’ is closed to new replies.

 * ![](https://ps.w.org/minimal-coming-soon-maintenance-mode/assets/icon-256x256.
   png?rev=1797141)
 * [Minimal Coming Soon – Coming Soon Page](https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/minimal-coming-soon-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/minimal-coming-soon-maintenance-mode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [peebee10](https://wordpress.org/support/users/peebee10/)
 * Last activity: [1 year, 12 months ago](https://wordpress.org/support/topic/embed-google-map-into-custom-html/#post-17828068)
 * Status: resolved