Support » Plugin: Basic Google Maps Placemarks » Basic Google Maps Placemarks error: JavaScript and/or CSS files aren't 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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ian Dunn

    (@iandunn)

    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.

    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?

    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.

    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.

    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.

    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.