Title: JavaScript and/or CSS files aren&#8217;t loaded.
Last modified: March 3, 2017

---

# JavaScript and/or CSS files aren’t loaded.

 *  [porthosj](https://wordpress.org/support/users/porthosj/)
 * (@porthosj)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-andor-css-files-arent-loaded-2/)
 * Hi,
 * So I know the solution is to use the enqueue function and I’ve seen the help 
   page on it, but I’m a total newbie when it comes to this. Could someone possibly
   dumb down a little what it is I need to actually do to get the plug-in working?

Viewing 1 replies (of 1 total)

 *  Thread Starter [porthosj](https://wordpress.org/support/users/porthosj/)
 * (@porthosj)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-andor-css-files-arent-loaded-2/#post-8870096)
 * Sorry, I also am wondering is it possible using the filter to hide the map and
   error message on other pages? I have the map in the leftside bar on my site (
   it’s an internal server, so I can’t provide links)
 * But if I add this to the theme functions.php
 *     ```
       function bgmpShortcodeCalled()
       {
           global $post;
   
           $shortcodePageSlugs = array(
               'page-I-want-it-on',
               'second-page-I-want-it-on'
           );
   
           if( $post )
               if( in_array( $post->post_name, $shortcodePageSlugs ) )
                   add_filter( 'bgmp_map-shortcode-called', '__return_true' );
       }
       add_action( 'wp', 'bgmpShortcodeCalled' );
       ```
   
 * Would it then hide the error and map on the other pages, or would I see the error?

Viewing 1 replies (of 1 total)

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

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [java](https://wordpress.org/support/topic-tag/java/)
 * [loading issue](https://wordpress.org/support/topic-tag/loading-issue/)

 * 1 reply
 * 1 participant
 * Last reply from: [porthosj](https://wordpress.org/support/users/porthosj/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-andor-css-files-arent-loaded-2/#post-8870096)
 * Status: not resolved