Skip to main content

How to Add a Store Locator to Framer

Add a store locator to a Framer site with one Embed: paste the code as HTML, set Width to Fill and Height to Fit, then publish. Steps with real screens.

To add a store locator to Framer, paste your StoreRocket embed code into an Embed element set to HTML, set its width to Fill and its height to Fit, and publish. No plugin or custom code setting is needed, and the locator shows in the Framer editor as soon as the code is in.

We make StoreRocket, so weigh our view with that in mind. The four steps below are the same ones our dashboard's Install page shows for Framer, and the screens are from a real Framer site. You can create your locator with a free trial, no credit card needed.

Related: How to add a store locator to your website | How to add a store locator to Webflow | Best store locator software | Store locator with Google Sheets sync

The short answer

A free map or app is enough when

  • You have a few locations that rarely change, and visitors only need to see where each one is on a map.
  • A Google Maps embed with your pins, pasted into Framer as a URL Embed, already does the job for you.
  • You can keep locations in a Google Sheet and set up a Mapbox token: a free Marketplace component works that way.
  • Nobody on your team needs analytics, leads from the locator or several people editing the list of locations.

Use StoreRocket when

  • Visitors should search by address or postcode and see the nearest locations first, with distance and opening hours.
  • Your list is long or changes often, and the people who keep it up to date should not need Framer access.
  • You want the locator to follow your site’s colours, font and wording, all inside the one Embed on your page.
  • You want StoreRocket to maintain the hosted locator and deliver updates through the embed already on your site.

Only a few locations and no budget? You may not need a store locator at all. A free embedded map with a pin for each location is fine when the list is short, rarely changes and visitors only need to see where you are. Our guide to free store locator options compares them.

After install, your team changes locations in the StoreRocket dashboard, by spreadsheet import or with Google Sheets sync (depends on the plan), and the locator on your Framer page updates itself. You publish the Framer site once.

Before you start

  • A Framer site you can edit and publish. The screens below were taken on a free Framer account.
  • A StoreRocket locator with your locations. Add them by hand or import a spreadsheet (CSV, TSV, TXT, XLS or XLSX). Imports place each address on the map for you.
  • Your embed code. Open the Install page in the StoreRocket dashboard and copy the code shown there. It already carries your account, so paste it exactly as copied.
StoreRocket’s Install page on an example account: “You’re one copy-paste away”, with the embed code and a Copy instructions button.
Example data The Install page, on an example account. Copy the embed code from here rather than retyping it.

How to add a store locator to Framer, step by step

Step 1: Add an Embed

Open your locator page in Framer, or create one such as "Find a store". Click Insert (+) at the top left, search Embed, then drag it onto your page.

Framer’s Insert panel with Embed found, beside the locator page
Example data Framer’s Insert panel with Embed found, on an example site.

Step 2: Paste the code as HTML

In the right panel, under Embed, click HTML. Paste your StoreRocket code into the HTML box. The locator appears on the canvas straight away.

The Embed set to HTML with the StoreRocket code in it, the locator already showing on the page
Example data The Embed set to HTML, with the code in it. A new Embed is 600 by 400 and Fixed, so the locator is squeezed until step 3.

Step 3: Set Width to Fill and Height to Fit, then publish

Under Size, set Width to Fill and Height to Fit. Fill gives the locator your page’s column, and Fit makes the Embed as tall as the locator, so there is no height to guess. Then click Publish.

The Embed’s size set to Fill and Fit, the locator spanning the page, with Publish at the top right
Example data Width on Fill and Height on Fit, with Publish at the top right.

A Phone breakpoint you add later keeps Fill and Fit, so the locator also fits there without another setting. Keep Height on Fit: a fixed height cuts off the bottom of the locator.

Step 4: Check the live page

Open your published page and search near one of your locations.

A Framer site with the StoreRocket locator on it: search, the list of stores and the map
Example data The published Framer page with the locator: search, the list and the map.

Then add the page to your navigation, for example as "Find a store", so visitors can reach it from every page.

Create your locator →

Match the locator to your Framer design

Framer sites are usually designed with care, so the locator should look like part of the page rather than a box from somewhere else.

  • In StoreRocket's Widget Studio, choose the locator style, your brand colour, font, button text and every word it shows, with a live preview. Nothing changes on your site until you save.
  • Markers and map style: use your own marker image, and pick a built-in map style (a custom Google Maps or Mapbox style depends on the plan, see pricing).
  • Custom CSS in Widget Studio styles the locator itself. Framer runs the Embed's code inside its own frame, so CSS in Framer's site settings does not reach the locator.
  • Around the locator, style the section in Framer as usual: padding, background and the heading above it.

Changes you save in StoreRocket reach the live Framer page through the same embed code. You do not republish the Framer site for a new location or a new colour.

Troubleshooting a store locator on Framer

The locator is cut off at the bottom

The Embed has a fixed height. Select it and set Height to Fit.

The locator is narrow or squeezed

The Embed still has a fixed width. Set Width to Fill, and check the width of the section or stack it sits in.

The locator shows at half width

If your locator's custom CSS centres it with a rule such as margin-left: 50%, it shrinks inside Framer's Embed, because Framer centres the frame's content itself. Use margin-left: auto; margin-right: auto; instead, which looks the same on any other page.

Nothing shows on the page

Check that the Embed's type is HTML, not URL, and that the whole code was pasted, from the first line to the last. Then publish and open the live page. If it still shows nothing, send the page link to StoreRocket support through live chat or [email protected].

Other ways to put a locator on Framer

Option What it is Good for What to weigh
StoreRocket embed A hosted locator in one Embed Search by address, filters, hours, analytics and leads (depending on the plan), a team editing the list A subscription after the free trial; after subscribing you connect your own Google Maps or Mapbox key
Google Maps URL embed A map you made in Google, pasted as a URL Embed A few pins that rarely change No search by address or nearest-first list
Framer Marketplace StoreLocator A free Framer component that reads a Google Sheet Small lists, a team comfortable with Mapbox You add your own Mapbox token and style URL
Build it in Framer Code components and a map API A developer who will own it Geocoding, search, distance sorting and upkeep are yours

If you are still choosing a locator rather than installing one, our roundup of the best store locator software compares the field with published prices.

Frequently Asked Questions

Do I need a plugin to add a store locator to Framer?

No. Framer's own Embed element takes the code as HTML. Framer's help article on embeds says the same: add the script in the HTML section of the Embed component (Framer help).

Will the locator show in the Framer editor?

Yes. Once the code is in the Embed's HTML box, the locator shows on the canvas. Check the published page as well, since that is what visitors see.

What height should the Embed have?

Set Height to Fit rather than a number. Framer then sizes the Embed to the locator, on desktop and on a Phone breakpoint.

How do I update locations after the site is live?

In the StoreRocket dashboard, by spreadsheet import or with Google Sheets sync (depends on the plan). The locator on your Framer page updates itself; you do not republish Framer.

Does it work with Framer's CMS?

The locator keeps its locations in StoreRocket, not in the Framer CMS, so the people who update them do not need Framer access. Put the Embed on one page, such as "Find a store", and link to it from your navigation.

What does a store locator on Framer cost to run?

Framer's own plan, plus the locator. StoreRocket's plans are on the pricing page, with no limit on views or searches. During the free trial StoreRocket supplies the map; after you subscribe you connect your own Google Maps or Mapbox key and pay that provider directly. The free options above cost nothing but leave the setup and upkeep with you.

StoreRocket gives Framer sites a store locator for their own website: import your locations from a spreadsheet, match it to your brand and paste one embed code. Create your locator with a free trial, no credit card needed.

Create your locator →

Put a store locator on your site today

Import your locations, make the locator match your website, and add it to a page the way you would add a video. No developer required.

Create your locator

7 days free · No card · No automatic charge · see a live locator first

Related Articles