3.2 requires adding to code to header of template files
-
Since updating to LMM v3.2 and WP v3.5, I’m getting this error on pages using shortcodes to call maps:
“Leaflet Maps Marker warning!
You must enqueue the plugin stylesheets manually if you want to show maps by calling do_shortcode() in your template files!
Please add the following code before your get_header() call inside your template, which is usually located in header.php:$plugin_version = get_option(‘leafletmapsmarker_version’);
global $wp_styles;
wp_enqueue_style( ‘leafletmapsmarker’, LEAFLET_PLUGIN_URL . ‘leaflet-dist/leaflet.css’, array(), $plugin_version );
wp_enqueue_style( ‘leafletmapsmarker-ie-only’, LEAFLET_PLUGIN_URL . ‘leaflet-dist/leaflet.ie.css’, array(), $plugin_version );
$wp_styles->add_data(‘leafletmapsmarker-ie-only’, ‘conditional’, ‘lt IE 9’);********
Anyone else experience this?
https://www.ads-software.com/extend/plugins/leaflet-maps-marker/
- The topic ‘3.2 requires adding to code to header of template files’ is closed to new replies.