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

---

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

 *  [alexdobsonuk](https://wordpress.org/support/users/alexdobsonuk/)
 * (@alexdobsonuk)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-javascript-andor-css-files-arent-loaded/)
 * Hi
 * I’m using the Divi theme and am calling the map via the shortcode. The Map works
   fine until I use the Divi page builder.
 * Please can you advise how I call the relevant files so the plugin will work in
   this page?
 * Error:
 * 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. 
   See the FAQ for details.
 * [https://wordpress.org/plugins/basic-google-maps-placemarks/](https://wordpress.org/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)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-javascript-andor-css-files-arent-loaded/#post-7009267)
 * Check out `Using [bgmp-map] in a template file with do_shortcode():` in the Installation
   page. One of the two snippets there should fix it.
 *  [art005](https://wordpress.org/support/users/art005/)
 * (@art005)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-javascript-andor-css-files-arent-loaded/#post-7009405)
 * Hello Ian, I have the same problem and don’t understand your answer. I am using
   a Theme and a Page Builder. I pasted [bgmp-map] in the row. By the way, are the[]
   supposed to be typed with bgmp-map?
 *  [art005](https://wordpress.org/support/users/art005/)
 * (@art005)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-javascript-andor-css-files-arent-loaded/#post-7009406)
 * I’m a beginner, maybe easier for you to tell me what not to do instead of what
   to do. I am using the popular Tesseract-2 theme. My WP is version 4.5.1
 * I installed widget: Shortcode, Actions and Filters. Using Tools on the dashboard
   I pasted this into the widget builder:
 * function bgmpShortcodeCalled()
    { global $post;
 *  $shortcodePageSlugs = array(
    ‘hello-world’, ‘second-page-slug’ );
 *  if( $post )
    if( in_array( $post->post_name, $shortcodePageSlugs ) ) add_filter(‘
   bgmp_map-shortcode-called’, ‘__return_true’ ); } add_action( ‘wp’, ‘bgmpShortcodeCalled’);
 * Saved it and then Activated it. I still get the Add filter to Theme page error.
   I think what I did is suppose to be a better substitute for adding a filter to
   a Theme though I don’t know how to do that anyway.
 * So I hope you can list what I did wrong trying to understand your limited directions.
 *  [art005](https://wordpress.org/support/users/art005/)
 * (@art005)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-javascript-andor-css-files-arent-loaded/#post-7009407)
 * I don’t know if this is a sign of progress or not. New error statement:
 * Basic Google Maps Placemarks error: bgmpData undefined
 * This is my page code:
    [bgmp-map]
 * I have 2 Placemarks defined in that part of the program.
 *  [art005](https://wordpress.org/support/users/art005/)
 * (@art005)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-javascript-andor-css-files-arent-loaded/#post-7009408)
 * The geocodes defined by my addesses are correct and work on Google Maps outside
   of WP. But in the Placemarks page, if I click “view” of the Placemark I get a
   message:
 * Oops! That page can’t be found.
 * It looks like nothing was found at this location. Maybe try a search?
 * Is that suggesting something with the geocode data cannot be used, even though
   it is right? I only entered addresses, WP generated the geocodes and I checked
   they are correct and work in Google Maps outside of WP.
 *  [art005](https://wordpress.org/support/users/art005/)
 * (@art005)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-javascript-andor-css-files-arent-loaded/#post-7009409)
 * Update: I made sure that all other map plugins are deactivated.
 * I suspect the error is that I don’t understand this shorthand of changing names
   and arguments and adding slugs to match my program. Please add a little more 
   explanation of what to do to this paragraph that relates to the Functionality
   Plugin:
 * “Copy and paste that into your theme’s functions.php file or a functionality 
   plugin, update the function names and filter arguments, and then add the slugs
   of any pages/posts containing the map to $shortcodePageSlugs.”

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

The topic ‘Basic Google Maps Placemarks error: 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [art005](https://wordpress.org/support/users/art005/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/basic-google-maps-placemarks-error-javascript-andor-css-files-arent-loaded/#post-7009409)
 * Status: not resolved