In general php code can be inserted at any place of the page code – to display exactly in this place, for example in the header or footer of the page. Besides it can be inserted in the code of template of the theme – to display on all pages.
You can place map not only on the page, but in the popup window. To do this you also need to use Popup by Supsystiс plugin. Follow next steps to create amazing map located in popup:
Install and activate Popup by Supsystiс plugin;
Create a popup by any template with text fields;
Nearly all templates have such fields. They located on Texts tab. If there is no tab in popup settings – choose different template.
Copy shortcode of your map;
Go to Texts tab and paste shortcode into any text field;
Important! The map will not be visible during popup preview – to see map you need to view popup on site page. Besides text field should be large enough to hold map, so it is better to use text blocks to paste map shortcode.