Title: Maps not loading, javascript/css error. I added the function for the homepage
Last modified: February 8, 2018

---

# Maps not loading, javascript/css error. I added the function for the homepage

 *  Resolved [saiborg333](https://wordpress.org/support/users/saiborg333/)
 * (@saiborg333)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/maps-not-loading-javascript-css-error-i-added-the-function-for-the-homepage/)
 * Hello,
 * I am getting the infamous javascript/CSS not loaded (in Italian).
 * I have followed the faq and copied this portion of code in the functions file
   for the homepage:
 * function bgmpShortcodeCalled()
    { global $post;
 *  if( ( function_exists( ‘is_front_page’ ) && is_front_page() ) || ( function_exists(‘
   is_home_page’ ) && is_home_page() ) )
    add_filter( ‘bgmp_map-shortcode-called’,‘
   __return_true’ ); } add_action( ‘wp’, ‘bgmpShortcodeCalled’ );
 * My theme (kallyas) is using its own builder, called zion builder. If I paste 
   the shortcode inside the zion builder the map does not show up, but if I paste
   it in a page where the builder is disabled,l it shows up.
 * Problem is, I need to use that builder because the rest of the page is structured
   with it.
 * Is there a way to force the javascript and CSS to always load no matter what?
   I would really like to use your plugin because I can then filter the location
   markers for some other stuff I need to do.
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmaps-not-loading-javascript-css-error-i-added-the-function-for-the-homepage%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [saiborg333](https://wordpress.org/support/users/saiborg333/)
 * (@saiborg333)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/maps-not-loading-javascript-css-error-i-added-the-function-for-the-homepage/#post-9954584)
 * Hello again, it seems now it started to work by itself… sorry about that.

Viewing 1 replies (of 1 total)

The topic ‘Maps not loading, javascript/css error. I added the function for the 
homepage’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [saiborg333](https://wordpress.org/support/users/saiborg333/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/maps-not-loading-javascript-css-error-i-added-the-function-for-the-homepage/#post-9954584)
 * Status: resolved