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

---

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

 *  [paulvw](https://wordpress.org/support/users/paulvw/)
 * (@paulvw)
 * [10 years ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/)
 * Hi Ian,
 * I read your advise on this particular question earlier. I did follow up the advise
   of adding a snippet to the function.php, but it gives the same error.
    Not sure
   if there is a way around this and/or does it have it to do with this DIVI theme?
   Could you help out?
 * Thanks!
 * Paul
 * [https://wordpress.org/plugins/basic-google-maps-placemarks/](https://wordpress.org/plugins/basic-google-maps-placemarks/)

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

 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [10 years ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-7501406)
 * Which snippet did you add? There are two, and one of them is more error-prone
   than the other (but it’s also better in other ways).
 * Try adding only this:
 * `add_filter( 'bgmp_map-shortcode-called', '__return_true' );`
 *  Thread Starter [paulvw](https://wordpress.org/support/users/paulvw/)
 * (@paulvw)
 * [10 years ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-7501478)
 * Hi Ian,
 * Yes Ian! That last one worked indeed!!!
    Thank you so much 🙂 Wonderful!
 * 🙂
 * Paul
 *  Thread Starter [paulvw](https://wordpress.org/support/users/paulvw/)
 * (@paulvw)
 * [10 years ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-7501480)
 * Ah… I just tried to make it responsive by adding the suggested code below, but
   it didn’t work.
    Would you at all be willing to add the % width and height options
   to the option besides the pixels option?
 * Used ‘hack’ that was posted in the forum:
 *     ```
       add_filter( 'bgmp_clean-map-shortcode-arguments-return', 'overide_BGMP_arguments', 100 );
   
       function overide_BGMP_arguments( $params ) {
   
       	if( $params['mapWidth'] == '100' ) {
       		$params['mapWidth'] = "100%";
       	}
       	return $params;
       }
       ```
   
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code may now have been damaged by the forum’s parser.]_
 *  [Gillian](https://wordpress.org/support/users/ridgididgi/)
 * (@ridgididgi)
 * [10 years ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-7501483)
 * [@paulvw](https://wordpress.org/support/users/paulvw/) – I found that when I 
   added that responsive code, it didn’t work if I put the “100” in the global width
   option in the settings (I ended up with a 100px wide strip of map). However, 
   it does work if you put width=100 as a parameter in the shortcode when you insert
   the shortcode into a page.
 * The map is still only responsive up to a point – beyond that (eg phones), it 
   still crops off the right of the map. However, if the map was fully responsive
   on phones it would probably be so small it would be difficult to decipher.
 *  Thread Starter [paulvw](https://wordpress.org/support/users/paulvw/)
 * (@paulvw)
 * [10 years ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-7501489)
 * Ah, ok! Thanks. Will give it a try!
 *  [darktek](https://wordpress.org/support/users/darktek/)
 * (@darktek)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-7501756)
 * Hi, sorry to re-open this but it turns out I have this theme too to write my 
   content in each page: **DIVI Theme**, but when I open a “Code block” and write
   this:
 * `[bgmp-map placemark="1804"]`
 * It is giving the same error as the title of this post, I want to know if I need
   some more configuration to make this plugin runs, thx in advance
 * Edit: I didn’t use the functions.php to add my code, just in the DIVI Editor
 *  Plugin Author [Ian Dunn](https://wordpress.org/support/users/iandunn/)
 * (@iandunn)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-7501757)
 * [@darktek](https://wordpress.org/support/users/darktek/), it sounds like you’ll
   need to add this line of code to a functionality plugin:
 * `add_filter( 'bgmp_map-shortcode-called', '__return_true' );`
 * If you Google “wordpress functionality plugin”, it should give you lots of tutorials.
 *  [darktek](https://wordpress.org/support/users/darktek/)
 * (@darktek)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-7501758)
 * [@ian](https://wordpress.org/support/users/ian/) Dunn, thank you so much, I just
   needed to add that filter in my functions.php 🙂
 *  [Kelsey](https://wordpress.org/support/users/kelseyfrizzell/)
 * (@kelseyfrizzell)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-8610490)
 * [@iandunn](https://wordpress.org/support/users/iandunn/) I am using Divi as well
   and added this snippet to functions.php however now it is just showing Loading
   Map… and never loads. Am I missing something else? Thanks!
 *  [darktek](https://wordpress.org/support/users/darktek/)
 * (@darktek)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-8634247)
 * Did you try to clean the cache? [@kelseyfrizzell](https://wordpress.org/support/users/kelseyfrizzell/)

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

The topic ‘Again: 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/)

 * 10 replies
 * 5 participants
 * Last reply from: [darktek](https://wordpress.org/support/users/darktek/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/again-basic-google-maps-placemarks-javascript-andor-css-files-arent-loaded/#post-8634247)
 * Status: not resolved