WordPress

Add Sprig to WordPress

You have two easy options: drop the buttons onto one page with a Custom HTML block, or add them site-wide with a free plugin. Both are copy-and-paste — no theme editing.

Step 1 · Copy this

Your one-line snippet

This is the only code you'll paste. Logged in? Your API key is already baked in. Otherwise the buttons still work — just untracked until you add a key.

Live demo — click a button to try it
<script src="https://cdn.sprigshare.com/share.js?key=YOUR_API_KEY&api=https%3A%2F%2Fsharewidget-api-988645448815.us-central1.run.app" async></script>

Where it goes: A Custom HTML block on the page you want it on, or — for site-wide — the Footer field of a free snippet plugin like WPCode.

Heads up: If you're on WordPress.com (not self-hosted), the Custom HTML block requires a Premium plan or higher. Self-hosted WordPress.org sites have no such limit.

2

Edit the page or post where you want the buttons

In your WordPress dashboard, open the page or post in the block editor (the default editor with the “+” add-block button).

📷 Screenshot goes hereThe WordPress block editor open on a post, with the “+” add-block button highlighted.
3

Add a “Custom HTML” block

Click the “+” to add a block and search for “Custom HTML.” Select it — this gives you a box that accepts raw code.

📷 Screenshot goes hereThe block inserter search showing the “Custom HTML” block highlighted.
4

Paste the snippet and update

Paste your snippet (from Step 1 above) into the Custom HTML block, then click Update / Publish. Use “Preview” to confirm the buttons appear.

📷 Screenshot goes hereThe snippet pasted into a Custom HTML block with the Update button highlighted.
5

Want it on every page automatically?

Install a free code-snippet plugin like “WPCode,” go to its “Header & Footer” option, and paste the snippet into the Footer field. It’ll load on every page — no per-post editing.

📷 Screenshot goes hereThe WPCode Header & Footer screen with the snippet pasted into the Footer field.

That's it — your shares are now tracked.

Want different channels, colors, or a dropdown instead of buttons? Tweak it in the live builder.