• Resolved arjes

    (@arjes)


    Unfortunately after upgrading to 4.7 it stopped working => bgmpData undefined

    bgmpShortCodeCalled() is in the functions.php but it doesn’t pass over the data from the bgmp objects. Any clue?

Viewing 1 replies (of 1 total)
  • Thread Starter arjes

    (@arjes)

    Found the problem – again it’s an issue with the caching plugin WP-Rocket, specifically the Lazyload feature. It added the lazyload parameters to the images in the placemarks without correctly encoding/escaping certain special characters => this messed up the JavaScript and therefore having an incomplete bgmpData field.

    I solved it by disabling the lazyload in the functions.php of the theme in the same place where you activate the bgmp scripts/filter.

    add_filter( ‘bgmp_map-shortcode-called’, ‘__return_true’ );
    add_filter( ‘do_rocket_lazyload’, ‘__return_false’ );

Viewing 1 replies (of 1 total)
  • The topic ‘Incompatibility with 4.7’ is closed to new replies.