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 block | Page builder element | Connector plugin | |
|---|---|---|---|
| Best for | Standard block editor pages | Elementor, Divi and friends | Shortcode and block fans |
| Installs anything? | No | No | One tiny plugin |
| Survives theme switch | Yes | Yes, with the builder | Yes |
All three load the same hosted widget, so you can switch between them at any time without touching your locations.