Replace the Pins on the Map with a Custom Image


To replace the pins on the map with custom images, please follow these steps:

  1. From Shopify's 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 and 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 Shopify's admin, select Apps.

    select apps

  7. Select Store Locator.

    select store locator

  8. Select Settings.

    select settings

  9. Select Display Settings.

    select display settings

  10. Copy and paste this code in the "Page Footer HTML" field: 
    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 ();
    #direction_destination, .addresses li {
    /*this should also be the default Icon image displayed on the map */
    background-image: url("####");

    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.


That's it! 

Next Steps:

Blog Posts:

0 out of 3 found this helpful



Please sign in to leave a comment.