How to Stop Google Maps Breaking in WordPress Visual Mode

December 12, 2011 | Author: | Posted in Internet

Very often website designers like to ambed a Google map on their clients’ websites on either the contact or location pages.

Users can see where the company is located at a glance, on a map style that lots of users are familiar with, quickly get directions to the location, jump to a larger map view, use street view and lots more.

Google Maps is a free and fantastic resource to include on your site but if you or your clients use the WordPress editor in visual mode to edit your posts and pages then you will find the maps keep breaking.

This is caused by WordPress stripping out the HTML automatically if you change from HTML mode to visual mode or edit the post or page containing the embedded map in visual mode and save a new version.

This can be a source of frustration for admins who update the website and typically means them either not touching those specific pages, having to learn and use sme HTML to be able to edit the rest of the page or having to commission their website designers to make changes to the site.

This is just one of the problems solved by our latest WordPress plugin, Pure HTML. It can be downloaded for free here: and support is readily available.

The plugin allows you to add html mark-up, such as the code to embed Google maps that is normally stripped out and removed by visual mode in the page/post editor. It also comes with the ability to save code snippets for use on multiple pages without needing to update all pages when making a change to that particular snippet so if you use a map on more than one page you need only update it in 1 location in the admin system to update every instance of it throughout your site. Snippets of HTML code can be easily added into a post or page using a simple shortcode.

The plugin can also be used for embedding other common HTML items such as YouTube videos, forms and mp3 players.

Chris Gilchrist owns and manages Hit Reach, a website design and seo company beside Dundee in Scotland who specialise in WordPress website design.


This author has published 1 articles so far. More info about the author is coming soon.

Leave a Reply