Feedback board on a WordPress site
Add a voting button and board to a WordPress site with one Custom HTML block.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
Where it runs
On a self hosted site an administrator can paste a script into the Custom HTML block. On WordPress.com the script tag needs a paid plan with hosting features switched on.
Check where the site lives before you build anything.
On Multisite, only a Super Admin can save a script.
WordPress.com says the tags iframe, script, style, form, embed and object in a Custom HTML block need a paid plan with hosting features activated. Its page on code says JavaScript works on a plugin enabled plan. It adds that a paid plan alone is not enough, and that installing at least one plugin switches the hosting features on.
On a self hosted site the rule belongs to the user role. The WordPress capabilities list names the permission unfiltered_html, and it notes that on Multisite only Super Admins hold it. Without it, WordPress strips script tags when the block is saved, so a visitor sees a button that does nothing.
The snippet
The page needs the VoteFirst script, a button and a call that connects the two.
One script tag, one button and one call.
Your slug is the name in your board address.
The block takes plain HTML and JavaScript, and the snippet is both. Paste the three lines below into a Custom HTML block on the page where the button should appear. Click the button on the published page and a form opens over it.
The key is the first value on Share and Embed in the VoteFirst dashboard. It is public by design, because all it does is let a page show a form and take votes. The script is one file with no dependencies and it loads from a web address, so nothing is stored in your theme.
<script src="https://app.votefirst.app/embed/votefirst.js" data-project="your-slug" data-key="your-key"></script>
<button id="suggest-btn">Feedback</button>
<script>VoteFirst.suggest({ trigger: '#suggest-btn' });</script>Where to put it
Create a page called Feedback, add the Custom HTML block and place that page in your menu. One block on one page is the easiest case to test and to undo.
Give the button a page of its own, and link to it.
Preview the page, then view it as a visitor on the published address.
A single page keeps the script off every other address, so a slip costs you one page and not the whole site. A menu link or a footer link then carries visitors to it, and the same link works in a newsletter or a support reply.
Once the page works, copy the block to other places that suit a button, such as a help page or a plugin documentation page. Each copy loads the same file, which the browser keeps after the first visit.
The board
The form takes an idea. The board lists every idea with its status and its votes.
Link the button to a public board people can vote on.
A visitor can vote with no account.
A form alone gathers ideas and hides them. A public board shows them back with a count beside each one, so a visitor adds a vote and does not write the same idea again. Add a menu item called Roadmap or Ideas that points to the board address from your dashboard.
A new suggestion stays hidden until you approve it, so an open button cannot fill the board with noise. The owner is emailed about new suggestions, at most once a day. When two cards say the same thing, merge them and the votes of both stay.
Limit the key
List your site address as an allowed origin on Share and Embed. A page on any other origin is refused with origin_not_allowed.
Tell the key which addresses may use it.
Add the www form and the plain form if both resolve.
An embed key sits in the page source, as every public key does. Origins close the gap, because a copy of your snippet on someone else's site stops working. The two spellings of your address count as two origins, so list both when both open your site.
A staging copy of the site is a third origin. Add it while you test, and remove it when the work is done so the list holds only the addresses in use.
If it fails
Open the page as a visitor, view the source and look for the script tag. If it is gone, the host removed it when the block was saved.
A button that does nothing means the script was stripped.
WordPress.com lists the same symptom, with a plan check as the first cure.
WordPress.com tells users whose code vanishes after a save to check the plan first, then confirm the hosting features are active, then paste the code again. On a self hosted site the same symptom points to a user without the unfiltered_html permission, so save the block from an administrator account.
A caching plugin can serve an old copy of the page for a while after you add the block. Clear its cache once, and test in a private window so a stored copy in your own browser does not hide the result.
What visitors get on your WordPress site
A form on any page
A button opens it over the page, and nobody leaves your site.
A list they can read
The board shows what is asked, so a repeat becomes a vote.
An answer later
Statuses and a changelog tell them what shipped.
Add the board in five steps
Test on the published page, as a visitor.
Check the host
Confirm a script tag survives a save, on WordPress.com or self hosted.
Copy the keys
Take your slug and embed key from Share and Embed.
Add the block
Paste the three lines into a Custom HTML block on a Feedback page.
Link the board
Add a menu item that points to your board address.
Limit the key
List your site as an allowed origin and test as a visitor.
What to know before you start
- WordPress.com keeps script tags only on a paid plan with hosting features active.
- On Multisite, only a Super Admin can save a script in a Custom HTML block.
- Support from your host does not cover custom code, so test on the published page.
- The embed key is public, so list your allowed origins.
WordPress board setup questions
Does this need a WordPress plugin?
No. The snippet goes into a Custom HTML block, and the script loads from a web address, so nothing is installed.
Does it work on WordPress.com?
On a paid plan with hosting features active. WordPress.com says script tags in a Custom HTML block need that, and the free plan will not keep them.
Why does the button do nothing on a self hosted site?
The save may have stripped the script tag. Save the block from an administrator account, because the unfiltered_html permission allows scripts, and on Multisite only a Super Admin holds it.
Do visitors need an account to vote?
No. A visitor types a heading and a reason, or taps a vote on the board. You can connect your own sign in later.
Can the key be limited to my domain?
Yes. List your site address under allowed origins, and any other origin is refused with origin_not_allowed.
Where does the board live?
At a VoteFirst address you can link from your menu. A custom domain is available on Free and Pro.
Can visitors flood the board with suggestions?
A new suggestion waits for your approval before it goes live, and you can ban a voter who abuses it.
Will a caching plugin break it?
It can hide the block for a while by serving an old page. Clear the cache once after adding it.
Can the same button run on several pages?
Yes. Paste the block on each page. The script file is the same one every time.
What does it cost to try?
Free holds one project and 100 votes, Lite is $9/mo and Pro is $39/mo. A 14 day trial of either paid plan asks for no card.
More ways to add a board
More on the button, the widget and the roadmap.
A button for any website
Every option the popup takes.
The feedback widget
A board inside your page.
Make a public roadmap
Show visitors what comes next.
Add a feedback board to a Ghost site
An HTML card or code injection adds a button and board.
A board for a Framer site
Custom code or an Embed adds a form and roadmap.
Feedback board for WordPress plugins
A board for the people who install your plugin.
Let your readers tell you what to build
Start on the Free plan with one project and 100 votes. A 14 day trial of Lite or Pro asks for no card.