Overview
Store Locator comes built in with pins that appear on each location of your map.
If you are looking for something more customized to your store's style, you can replace our default pins with your own preferred custom images.
To replace the pins on the map with custom images, please follow these steps:
- From Shopify's admin, select Settings.
- Select Files.
- Select Upload files.
- Use the file manager to navigate to, select, and upload your custom image.
- Repeat Steps 3 & 4 until you have uploaded all custom images.
Note: You will need the URLs for these images later so ensure you copy and paste them to notepad or do the next steps in another window so you can refer to them.
- From Shopify's admin, select Apps.
- Select Store Locator.
- Select Settings.
- Select Display Settings.
- Copy and paste this code in the "Page Footer HTML" field:
<script> old_add_markers = add_markers; add_markers = function (){ // this is the default Icon image displayed on the map mainIcon = "####"; // this is the icon used to display the users address youIcon = "!!!!"; // this is a shadow used for both icons myshadow = "****"; add_markers = old_add_markers; add_markers (); } </script> <style> #direction_destination, .addresses li { /*this should also be the default Icon image displayed on the map */ background-image: url("####"); } </style>
- Replace ####, !!!!, and **** with the URLs to the images. Please ensure you leave the double quotation marks. ("") (from Step 5).
- Select Save.