Plugin Contributor
hupe13
(@hupe13)
I don’t use Elementor, but I tested it. I found that it works with GeneratePress for example, but not with Twenty Twenty Three.
I can only recommend to use the WordPress editor for these pages or ask Elementor for support.
The problem is, Elementor converts the Shortcode block to a classic HTML block.
Ok, thanks for the clarification unfortunately i’m forced to use Elementor, with previous versions of LeafLet i didn’t have this problem anyway.
Plugin Contributor
hupe13
(@hupe13)
When you edit the page with Elementor, do you use the Shortcode block for [leaflet-map]?
Or are you offered a Text Editor block?
This is my code:
[leaflet-map lat=43.05565133680425 lng=12.405886769687065 height=”400″ zoom=13 zoomcontrol detect-retina][fullscreen]
[leaflet-marker lat=43.05565133680425 lng=12.405886769687065]<b>Company Name</b><br>
Street Address<br><br><u><a href=”https://goo.gl/maps/” target=”_blank”>Directions</a></u>
[/leaflet-marker]
Plugin Contributor
hupe13
(@hupe13)
This works for me, both with GeneratePress and Twenty Twenty-Three.
But the Editor “translates” <
to & l t ;
and >
to & g t ;
, maybe this is the problem.
(The blanks are because of the forum editor)
-
This reply was modified 2 months, 1 week ago by
hupe13.
-
This reply was modified 2 months, 1 week ago by
hupe13.
Plugin Contributor
hupe13
(@hupe13)
The only thing that Bozdoz changed is the handling of popups. It may be that Elementor interprets this incorrectly:
marker.bindPopup(window.WPLeafletMapPlugin.unescape('<b>Company Name</b></p><br><p class=\"p1\">Street Address<br /><br /><u><a href=\"https://goo.gl/maps/\" target=\"_blank\" rel=\"nofollow noopener ugc\">Directions</a></u></p><br><p class=\"p1\">'));window.WPLeafletMapPlugin.markers.push( marker );