This is a sample map of Europe that opens a lightbox when you click on one of the markers:
This is how the administration panel looks like:
This map example uses Featherlight which is a very lightweight jQuery lightbox plugin. You won’t need to install any additional WordPress plugins to use this map and the lightbox on your site. The lightbox should work without any problems.
The JavaScript code for this map is quite simple. The following line is executed, when a marker is clicked:
jQuery.featherlight(click_value);
The click_value
simply contains the HTML for each marker. This HTML will be used for the inner content of the lightbox.
If you are already using a lightbox on your site, you can also replace Featherlight by your own. You will only have to change the one line of JavaScript code from above and insert the function from your lightbox. If this works, you can also delete the first four lines of HTML in the map template. They are used to include the Featherlight code. The map template can be seen in the box below. If you need assistance with this, please write us and we will try to provide help.
The map configuration can be found here: