Add the widget to your website: HTML or WordPress
Widget & product By M. Moes Published on 2 November 2026
You add the NearPin widget with one line of code. You copy it from your dashboard and paste it into your website. Where exactly it goes depends on the system your site is built with. Below are the three options, and what to do when the widget stays empty.
Finding the code
In the dashboard, your widget shows the heading "Place this code on your website", with a button to copy the code. If the widget is not active yet, the code is locked. Activate the widget first.
On your own website (HTML)
Paste the code into your page's HTML, right before the closing </body> tag.
In WordPress
Add a "Custom HTML" block to the page and paste the code into it. If you want the code on every page, use a plugin such as "Insert Headers and Footers" to place it site-wide.
In another system
Most systems offer a block or a setting for "custom HTML" or "embed code". Paste the code there. If you get stuck, contact us.
Entering the domain
The widget only loads on the websites you have entered for it. Enter your domain, for example example.com. If you paste a full web address, we keep only the domain. If you have several websites, separate the domains with a comma. That way no other website can load your widget.
*.example.com allows all subdomains, such as book.example.com. The domain example.com itself is not included. Add that one too.
The widget stays empty
Visitors then see no error message, only an empty area. That is on purpose: if something is wrong, the widget does not load. Check in this order:
Is the domain of your website entered for the widget? As long as no website is entered, the widget stays empty.
Is the widget active?
Does your dashboard show a notice that a domain was blocked? It lists the domain and the date. If the domain is yours, add it.
Try it first
You try NearPin free for 14 days. The pricing page shows what is included.