Shopify: add the map with "Custom Liquid"

This is how you show your store locator map in your Shopify shop: copy the code in My Store Locator, add a Custom Liquid section in the theme editor, paste the code, save. Our own app in the Shopify App Store is coming soon – until then, this works in every theme.

  • Time needed: about 3 minutes
  • Plan: Every plan
  • Tested on · app version 26.11.12

What you need

  • A My Store Locator account with a published map – the Free plan is enough
  • A Shopify shop and access to Online Store → Themes

1. Copy the code in My Store Locator

Open Integrations → Platforms and click Shopify. In the section Works today: with a ready code:

1. Copy the code in My Store Locator
  1. Under Map, choose the map that should appear in the shop.
  2. This is the ready code – width 100%, height 600 pixels.
  3. Click Copy code. To change the height, language or look, use Adjust in the Embed Studio.

2. Add a "Custom Liquid" section

In Shopify, open Online Store → Themes and click Edit theme on the current theme (Customize in older versions). At the top, choose the page, e.g. the home page or your own "Stores" page.

2. Add a "Custom Liquid" section
  1. On the left, in the Template area, click Add section.
  2. Type "Custom" into the search box.
  3. Choose Custom Liquid.

3. Paste the code and save

The settings of the new section open on the right. The preview shows the map straight away.

3. Paste the code and save
  1. Paste the copied code into the Custom Liquid field.
  2. Click Save at the top right.

Tip: Use Section padding to set the space above and below the map. You can drag the section up or down on the left.

4. Done: the map in your shop

Visitors to your shop now see the map with search, filters and list – exactly as under your map link. Changes to locations or to the map appear automatically; you don't need to paste the code again.

4. Done: the map in your shop
  1. Test the map once in your shop: search for a place, click a store, open Directions.

Good to know

Is there a Shopify app?

The app for the Shopify App Store is coming soon. Then you install it with one click and drag the "Store Locator" block onto the page. Until then, Custom Liquid is the way to go – it works in every theme.

The map is empty or does not show.

Check that the map is published. If you switched on Show only on allowed websites, add your shop's address (e.g. your-shop.myshopify.com and your own domain) under Allowed websites.

How do I change the height of the map?

The code contains height:600px. Change the number directly in the Custom Liquid field, or set the height in the Embed Studio and copy the code again.

Do I need a paid plan for this?

No. Embedding works in every My Store Locator plan, including Free.

What's next?

Try it with your own locations.

Create an account, import your locations, embed the map. The Free plan stays free - and you can test Pro for 14 days.

Try the demoTry it now, no sign-up