Try for free Login Home Features Pricing Demo Guides
Platforms

Guides

How to add a store locator to WordPress without a plugin

Most store locator plugins bring their own database tables, admin menus and update cycle. An embedded widget skips all of it.

By Robin, who builds and runs StoreLo · Updated 2026-07-30

The problem with heavyweight locator plugins

Classic WordPress store locator plugins store your locations inside WordPress. That sounds convenient until you switch themes, move hosts or hit a plugin conflict, and your locator data is tangled up in it. They also render server-side on every request, add their own scripts and styles site-wide, and need updating like everything else in wp-admin.

The embed approach flips it: your locations live in a hosted dashboard, WordPress only holds one line of code, and the widget renders in the visitor’s browser. Theme switches, host moves and WordPress updates cannot break it.

Option 1: the Custom HTML block (fastest)

Edit the page where the locator should live, add a Custom HTML block, and paste the snippet from your StoreLo dashboard:

<div id="storelowidget" data-locator="YOUR-LOCATOR-ID"></div>
<script src="https://storelowidget.com/widget.js" async></script>

Update the page and the map is live. This works in the block editor on any theme, including block themes.

Option 2: your page builder

Every major builder has an HTML element: the HTML widget in Elementor, Code block in Divi, Custom HTML in Beaver Builder, Embed in Bricks. Drop it where you want the locator and paste the same snippet. Nothing about the snippet is builder-specific. Elementor user? There is a dedicated Elementor store locator walkthrough.

Option 3: the lightweight connector (optional)

If you prefer a shortcode or a Gutenberg block, there is a tiny StoreLo connector on WordPress.org. It stores exactly one setting (your Locator ID), gives you a [storelo] shortcode and a StoreLo block, and validates the ID for you. No database tables, no cron jobs, no admin clutter. It is genuinely optional: the Custom HTML block above does the same job without it.

Which one should you pick?

Custom HTML blockPage builder elementConnector plugin
Best forStandard block editor pagesElementor, Divi and friendsShortcode and block fans
Installs anything?NoNoOne tiny plugin
Survives theme switchYesYes, with the builderYes

All three load the same hosted widget, so you can switch between them at any time without touching your locations.

Frequently asked

Does the embed slow down WordPress?
No. It is one async script on the one page where you place it. It adds nothing to the rest of your site and does not touch your database.
Will it survive a theme change?
Yes. The snippet lives in your page content, not in the theme, so a redesign leaves the locator untouched.
Can I still use a shortcode?
Yes, install the lightweight StoreLo connector from WordPress.org and use [storelo] anywhere, including in page builders that render shortcodes.
Where do I manage my locations?
In the StoreLo dashboard. Add, edit or import locations there and every embed updates automatically, whether it sits in WordPress, Shopify or plain HTML.

Keep reading

WordPress store locatorElementor store locatorImport locations from CSV

Put this into practice

Create a store locator on the free plan and have it on your site today. Five locations, no credit card.

Start free

Free for 5 locations · No credit card · Stuck? I set it up for you