Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1271036

    Hi Guys,

    we’re doing a script for a customer, which is working fine in a iframe. as soon I upload the script as a plugin and insert the shortcode of the plugin – the map is not showing, and the dropdown is not selecting proper.
    The map are based on leaflet…
    Any ideas?
    I did post the link for you in the private section.
    there you can see on the left the iframe, on the right the plugin…

    Cheers
    Tanju

    #1271596

    Hi Guys,
    Any thoughts?

    KR
    Tanju

    #1271895

    Hi,
    Sorry for the late reply, and thanks for the link, I see an error in the browser console:

    Uncaught (in promise) TypeError: stations.data.forEach is not a function
        at map.js:94

    2021-01-12_063246.jpg
    Please ensure that you are not loading the jQuery in the footer at: Enfold Theme Options > Performance > Load jQuery in your footer
    Once the not a function error is solved, and if the shortcode still doesn’t work you may need to use ob_start(); & ob_get_clean() in your plugin, this seems to be a good article about using Output Buffering in WordPress

    Best regards,
    Mike

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.