Title: [Plugin: Basic Google Maps Placemarks] JavaScript and/or CSS files aren&#039;t loaded.
Last modified: August 20, 2016

---

# [Plugin: Basic Google Maps Placemarks] JavaScript and/or CSS files aren't loaded.

 *  Resolved [mikechapel](https://wordpress.org/support/users/mikechapel/)
 * (@mikechapel)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/)
 * I receive this message: “Basic Google Maps Placemarks error: JavaScript and/or
   CSS files aren’t loaded. If you’re using do_shortcode() you need to add a filter
   to your theme first.”
 * When I go to basic-google-maps-placemarks/functions.js I can read “inactive” 
   and when I see Source code of the site, I can not see nor css style sheet nor
   the js file.
 * I use WP 3.2.1. and use Residence Real State theme of Gorilla Inc.
 * [http://wordpress.org/extend/plugins/basic-google-maps-placemarks/](http://wordpress.org/extend/plugins/basic-google-maps-placemarks/)

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

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232033)
 * Did you embed the map by putting the [bgmp-map] shortcode in a page, or did you
   call `do_shortcode( '[bgmp-map]' );` inside a template file?
 * If you used the shortcode, you theme probably isn’t calling `wp_footer()` just
   before the closing body tag. That’s the theme developer’s mistake.
 * If you’re using do_shortcode(), you need to manually enqueue the CSS and JavaScript
   files. Read the FAQ for details.
 * If that doesn’t solve the problem, can you post the URL to the page?
 *  Thread Starter [mikechapel](https://wordpress.org/support/users/mikechapel/)
 * (@mikechapel)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232041)
 * I use [bgmp-map] in a widget
 * The url is [http://www.xqyluxequality.com/](http://www.xqyluxequality.com/)
 * When you say :
    **_update the function names and filter arguments, and then add
   the slugs of any pages/posts containing the map to $shortcodePageSlugs. If you’re
   using it on the home page, the slug will be ‘home’_**.
 * What you mean update function names? or filters arguments?
    Do you mean slug 
   as [bgmp-map] And is neccessary to put “the theme name” at your_theme_name_bgmp_shortcod?
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232131)
 * It sounds like you’re calling the shortcode directly, instead of using the `do_shortcode()`
   function in a theme file, so you don’t need to worry about the FAQ entry.
 * The map on the link you gave isn’t my plugin. Do you still have it installed?
   If so, I’ll need a link to the page where the map is located.
 * Having two Google Maps on the same page can cause conflicts, so make sure the
   other plugin is disabled when testing mine.
 *  [rquilliet](https://wordpress.org/support/users/rquilliet/)
 * (@rquilliet)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232145)
 * Hi Ian,
 * I have the same message (“Basic Google Maps Placemarks error: JavaScript and/
   or CSS files aren’t loaded. If you’re using do_shortcode() you need to add a 
   filter to your theme first.”) on [http://www.echomagazine.org](http://www.echomagazine.org)
   using [bgmp-map] in a post. I use WPZOOM Cadabrapress theme.
 * You say :
    “If you used the shortcode, you theme probably isn’t calling wp_footer()
   just before the closing body tag. That’s the theme developer’s mistake.”
 * How can I change that ?
 * Thanks a lot for your help Ian
 * Remi
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232146)
 * rquilliet, can you give a direct link to the page with the map on it?
 * To check if your theme is calling `wp_footer()`, open footer.php in the theme
   folder and look at the very end of the file. It should be right before the closing
   body tag. Like this:
 *     ```
       <?php wp_footer(); ?>
       </body>
       </html>
       ```
   
 * If it’s not there, just add it.
 *  [rquilliet](https://wordpress.org/support/users/rquilliet/)
 * (@rquilliet)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232147)
 * Hey Ian
    Just checked : wp_footer() is called … So it doesn’t come from there…
 * Here’s a link to the page with the map.
 * [http://echomagazine.org/2011/08/test-2/](http://echomagazine.org/2011/08/test-2/)
 * If I just put [bgmp-map] in an empty post, the map appears. Any conflict with
   the photo ? The table ? Any idea ?
 * Cheers !
 * Remi
 *  [rquilliet](https://wordpress.org/support/users/rquilliet/)
 * (@rquilliet)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232148)
 * It seems that there is a conflict with the picture.
 * Here’s the current code :
 *     ```
       [caption id="attachment_1140" align="aligncenter" width="265" caption="Echo Magazine first issue @ Vinyl Exchange, Manchester"]<img src="http://echomagazine.org/wp-content/uploads/2011/08/first_issue-e1313171230908-265x300.jpg" alt="" title="Echo Magazine first issue @ Vinyl Exchange, Manchester" width="265" height="300" class="size-medium wp-image-1140" />[/caption]
   
       As announced, the first paper issue of Echo Magazine is now available. Check the nearest stockist and don't hesitate to send us your feedback on <a href="mailto:editor@echomagazine.org">editor@echomagazine.org</a>
   
       [bgmp-map]
       ```
   
 * If I just delete the `[caption]` block, then it works.
 * Is there a way to put both the picture and the map ?
 * Remi
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232153)
 * Ok, yeah, I’ve got the reproduced in my test environment. I’ll work on getting
   it fixed for the next version.
 *  [aenequi](https://wordpress.org/support/users/aenequi/)
 * (@aenequi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232155)
 * Ian, could you finish this thought from above
    _ When you say : update the function
   names and filter arguments, and then add the slugs of any pages/posts containing
   the map to $shortcodePageSlugs. If you’re using it on the home page, the slug
   will be ‘home’.
 * What you mean update function names? or filters arguments?
    Do you mean slug 
   as [bgmp-map] And is neccessary to put “the theme name” at your_theme_name_bgmp_shortcod?
 * I believe this is the issue I am having. I’m using do_shortcode. I’m not exactly
   sure what I am supposed to replace the function names with. I’m not terribly 
   well versed in wordpress. My theme is called “Duck N Roll”. I tried replacing
   the function names several ways, but none worked.
 * i.e.
 *     ```
       function Duck_N_Roll_bgmp_shortcode_check()
       {
           global $post;
   
           $shortcodePageSlugs = array(
               'home'
           );
   
           if( $post )
               if( in_array( $post->post_name, $shortcodePageSlugs ) )
                   add_filter( 'bgmp_mapShortcodeCalled', 'Duck_N_Roll_bgmp_shortcode_called' );
       }
       add_action( 'wp', 'Duck_N_Roll_bgmp_shortcode_check' );
   
       function Duck_N_Roll_bgmp_shortcode_called( $mapShortcodeCalled )
       {
           return true;
       }
       ```
   
 * and
 *     ```
       function ducknroll_bgmp_shortcode_check()
       {
           global $post;
   
           $shortcodePageSlugs = array(
               'home'
           );
   
           if( $post )
               if( in_array( $post->post_name, $shortcodePageSlugs ) )
                   add_filter( 'bgmp_mapShortcodeCalled', 'ducknroll_bgmp_shortcode_called' );
       }
       add_action( 'wp', 'ducknroll_bgmp_shortcode_check' );
   
       function ducknroll_bgmp_shortcode_called( $mapShortcodeCalled )
       {
           return true;
       }
       ```
   
 * The url is ducknrolltruck.com.
 * IF you could give me your thoughts, I would greatly appreciate it. I’ve been 
   trying a bunch of plugins, and yours is way better than any i tried. I usually
   won’t wait for help like this, but it’s worth it from the way it works.
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232158)
 * Hi aenequi. How are you determining the home page? Did you create a WordPress
   page and then choose it in the ‘Front page displays’ setting on the Reading Settings
   page? Or did you create a home.php file in your theme directory?
 * It looks like it won’t work with the home.php method. If you’re using that, try
   switching to the other method and let me know if that works. I’ll update the 
   FAQ to let others know.
 *  [aenequi](https://wordpress.org/support/users/aenequi/)
 * (@aenequi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232159)
 * I did neither. It’s in the index.php file.
 *  [aenequi](https://wordpress.org/support/users/aenequi/)
 * (@aenequi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232161)
 * Did I get the syntax right in one of the code snippets I posted? If I did, then
   I’ll go ahead and try the method you suggest trying.
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232164)
 * Yeah, it worked for me using both of the versions you posted. index.php is a 
   generic template that gets called in a lot of different circumstances. It’d probably
   better form to setup a template specifically for the home page, create a page
   for it, assign the template to that page, and then choose that page in the ‘Front
   page displays’ setting.
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232166)
 * rquilliet, this is fixed in 1.4

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

The topic ‘[Plugin: Basic Google Maps Placemarks] JavaScript and/or CSS files aren't
loaded.’ 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/)

 * 14 replies
 * 4 participants
 * Last reply from: [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-2232166)
 * Status: resolved