• I am going out of my mind – I have 2 markers – and I want a different popup on each one – my code for the screen shot https://prnt.sc/p8vwn1 is…

    [leaflet-map zoom=9 lat=39.994623 lng=-82.675245 zoomcontrol]
    [leaflet-marker lat=40.098737 lng=-82.425934]
    [leaflet-marker address=”oslo”]Oslo[/leaflet-marker]
    [leaflet-marker lat=39.95625 lng=-82.902387]

    but as you see in the screen shot – epic fail – can someone PLEASE give me the FULL correct code to put an on click popup (or visible is great – no link needed) a separate one for each address – thank you SO much – you would be my hero!!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author bozdoz

    (@bozdoz)

    You might need to close all the markers, or put the closing markers on top (maybe preferable):

    [leaflet-map zoom=9 lat=39.994623 lng=-82.675245 zoomcontrol]
    [leaflet-marker address=”oslo”]Oslo[/leaflet-marker]
    [leaflet-marker lat=40.098737 lng=-82.425934]
    [leaflet-marker lat=39.95625 lng=-82.902387]

    All closed:

    [leaflet-map zoom=9 lat=39.994623 lng=-82.675245 zoomcontrol]
    [leaflet-marker lat=40.098737 lng=-82.425934][/leaflet-marker]
    [leaflet-marker address=”oslo”]Oslo[/leaflet-marker]
    [leaflet-marker lat=39.95625 lng=-82.902387][/leaflet-marker]

    The reason being: WordPress is probably parsing the content incorrectly and assuming that the second marker (which has a closing tag) is actually the closing tag for the first marker. Let me know if I’m right. ??

Viewing 1 replies (of 1 total)
  • The topic ‘2 marker popups?’ is closed to new replies.