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
Hi Guys,
Any thoughts?
KR
Tanju
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
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