Replace the Pins on the Map with a Custom Image

Store Locator comes built in with pins that appear on each location of your map.

If you are looking for something more customized, you can replace Store Locator's default store and customer pins with your own images.

 


 

Setup

 Alert

This will only change the pins for your default store pin and default customer pin. Store groups cannot have a custom image.

  1. From the  Shopify admin, select Settings.

    select settings

  2. Select Files.

    select files

  3. Select Upload files.

    select upload files

  4. Use the file manager to navigate to, select, and upload your custom image.

    upload the files

  5. 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.

    repeat the steps

  6. From the Shopify admin, select Apps.
  7. Select Store Locator.
  8. Select Settings.

    select settings

  9. Select Display Settings.

    select display settings

  10. Copy and paste this code into 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>

    paste this code in the Page Footer HTML

  11. Replace ####, !!!!, and **** with the URLs to the images. Please ensure you leave the double quotation marks. ("") (from Step 5)

    add the URLs to the images

  12. Select Save.
Was this article helpful?
1 out of 4 found this helpful