Title: [Plugin: Basic Google Maps Placemarks] Map inside jQuery tab: a nightmare!
Last modified: August 20, 2016

---

# [Plugin: Basic Google Maps Placemarks] Map inside jQuery tab: a nightmare!

 *  [Nightjar](https://wordpress.org/support/users/nightjar/)
 * (@nightjar)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-map-inside-jquery-tab-a-nightmare/)
 * Hello,
    I thought it was easy to add a single Google Map inside a jQuery tab 
   of my template, but this task turned to a nightmare. I have already tested several
   WP plugins, but none of them is able to fully show a Google Map inside a jQuery
   Tab, due to a well-known conflict between jQuery and Google Map API v3.
 * As Basic Google Maps Placemarks looks as one of the most promising plugins, I
   wonder if the developer does have any suggestion to make his plugin work inside
   a (non-selected) jQuery tab. You can have a look of my work in progress here:
 * [http://dev.stonepages.com/wales/pentre-ifan](http://dev.stonepages.com/wales/pentre-ifan)
 * (click the “map” tab to see how BGMP plugin does look like…)
 * I’ve got another question too. On the Installation notes it is reported that
 * _ It’s not possible to detect when do\_shortcode() is used, so you need to manually
   let the plugin know to load the files by adding this code to your theme:<snip
   >…update the function names and filter arguments, and then add the slugs of any
   pages/posts containing the map to $shortcodePageSlugs._
 * I have discovered that the only way to make this plugin work on my test page 
   is to add manually the slug of that page to the function.php file… Is that the
   only way to do it? I could become mad if I have to add manually each page slug
   to that PHP file… I’m looking forward to use about 800 pages with maps on my 
   sites, and that manual technique would be highly impractical.
 * Any help would be greatly appreciated!
 * [http://wordpress.org/extend/plugins/basic-google-maps-placemarks/](http://wordpress.org/extend/plugins/basic-google-maps-placemarks/)

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

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-map-inside-jquery-tab-a-nightmare/#post-2572564)
 * I can’t help with your first problem, but if you want to include the scripts 
   on all pages instead of having to manually add each slug, you can just do this
   in your theme or a functionality plugin:
 *     ```
       add_filter( 'bgmp_map-shortcode-called', '__return_true' );
       ```
   
 *  Thread Starter [Nightjar](https://wordpress.org/support/users/nightjar/)
 * (@nightjar)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-map-inside-jquery-tab-a-nightmare/#post-2572633)
 * Hi Ian, thanks for your reply.
 * _>I can’t help with your first problem_
 * Does that mean that there is absolutely **no way** to use your Google Map plugin
   within any jQuery-driven tab?
 * I’m not a programmer, but considering how jQuery tabs and accordions are widespread
   today, it looks quite weird that we just can’t show a Google Map inside one of
   them… Apart from putting it on the very first tab!
 * Best regards.
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-map-inside-jquery-tab-a-nightmare/#post-2572646)
 * It sounds like the issue is a conflict w/ Google Maps and jQuery tabs, so it’s
   not specific to any particular plugin; you’d have the same problem embedding 
   a map directly without using any plugin. It should be possible, but it may take
   a lot of time to figure out how to workaround the conflict. I just don’t have
   time to support everything, so I stick to covering the core functionality.
 *  [azlivin008](https://wordpress.org/support/users/azlivin008/)
 * (@azlivin008)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-map-inside-jquery-tab-a-nightmare/#post-2572789)
 * Hello,
 * I struggled with this issue for more than a year and found a very simple solution.
   You don’t need any google map plugins, just the “iframe” plugin.
 * Go to maps.google.com, input the address you want, and click the “link” icon 
   to get the link’s code (it’s an iframe).
 * When you insert the iframe, just set the width to “100%” instead of a px value,
   and set the height to whatever you want, example:
    width=”100%” height=”350px”
 * You’ll need the [iframe plugin](http://wordpress.org/extend/plugins/iframe/),
   because wordpress will erase the iframe code when you switch between HTML and
   VISUAL editors.
 * It works great for me!
 *  [kryvulena](https://wordpress.org/support/users/kryvulena/)
 * (@kryvulena)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-map-inside-jquery-tab-a-nightmare/#post-2572849)
 * I experienced the same issue and I had to drop using the plugin with tabs, unfortunately.
   Too bad as splitting a content into parts with tabs is really convenient in use
   at frontend for site visitors. Maybe there could be a way to insert maps via 
   your plugin via iframe, too? Or maybe there is another solution?
 *  [kryvulena](https://wordpress.org/support/users/kryvulena/)
 * (@kryvulena)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-map-inside-jquery-tab-a-nightmare/#post-2572850)
 * [@azlivin008](https://wordpress.org/support/users/azlivin008/) – you’re right.
   But then you can’t use any placemarks created with the plugin…

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

The topic ‘[Plugin: Basic Google Maps Placemarks] Map inside jQuery tab: a nightmare!’
is closed to new replies.

 * ![](https://ps.w.org/basic-google-maps-placemarks/assets/icon-128x128.png?rev
   =1152531)
 * [Basic Google Maps Placemarks](https://wordpress.org/plugins/basic-google-maps-placemarks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basic-google-maps-placemarks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basic-google-maps-placemarks/)
 * [Active Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basic-google-maps-placemarks/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [kryvulena](https://wordpress.org/support/users/kryvulena/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-map-inside-jquery-tab-a-nightmare/#post-2572850)
 * Status: not a support question