How to add an announcement bar to a WordPress site without a developer
A step-by-step guide to an announcement bar on WordPress: install one line, write the text and the link in the Clew editor, choose the edge and the moment — without touching the site’s code again.
- Time
- ● 10 minutes
- Price
- 14-day free trial, no card
- Who does it
- WordPress administrator
Example: an announcement bar on WordPress
A publisher announces a price change: a strip at the top of every page reads “New subscription prices from 1 December — current rate locked until the end of the year”, with a button to the plans page. It does not dim anything, readers close it once and never see it again, and when December arrives the editor sets the tour back to draft — the line in the theme stays for the next announcement.
This format is part of the Pro plan. Every new account starts with a 14-day free trial with all formats and audience rules, no card required. When the trial ends nothing is deleted and published items keep showing; the Free plan keeps tours and tooltips free.
How to add an announcement bar on WordPress, step by step
- Step 01
Copy your Clew snippet
Create a free account (or sign in), add your site and open Admin → Overview. Click the line in the “No signal from the widget yet.” card to copy it — it carries your real site key instead of the placeholder.
<!-- Clew: replace PASTE_YOUR_SITE_KEY with the site key from Admin > Overview --> <script src="https://tryclew.io/widget/PASTE_YOUR_SITE_KEY.js" async></script>

Step 1 · schematic illustration - Step 02
Install a header code plugin
In Plugins → Add New install and activate the free WPCode plugin (or use your theme’s own “header scripts” option). Don’t edit
header.php: theme updates overwrite it.
Step 2 · schematic illustration - Step 03
Paste the line into the Header box
Open Code Snippets → Header & Footer, paste the Clew line into Header and press Save Changes.

Step 3 · schematic illustration - Step 04
Purge the cache
If you use WP Rocket, LiteSpeed Cache, W3 Total Cache or a CDN, purge the cache. In “delay JavaScript” settings, exclude
tryclew.io/widget.
Step 4 · schematic illustration - Step 05
Write the bar in Clew
In Clew open Flows → + New flow and set Format to Bar. Write Bar text, optionally Button label and Button link, and choose Where it sits. Leave How it sits on “Over the page” unless you have tested the other one on your site.

Step 5 · schematic illustration - Step 06
Choose where, when and for whom it shows
In the same editor, set Where to show (page URL), When to show, Audience targeting and Frequency. These are the settings of the example above:
Setting Value Format Bar Where to show (page URL) Any page When to show Right on page load Audience targeting No rules — everyone who opens the page Frequency Once per visitor 
Step 6 · schematic illustration - Step 07
Publish and check it on the live site
Set Status to Published and save. Open the page in a private window — Clew remembers who has already seen a “once” item, so your usual browser may skip it. Views, completions and drop-offs appear in the tour stats.

Step 7 · schematic illustration
Pitfalls: announcement bar on WordPress
“Delay JavaScript” hides the announcement bar until interaction
WP Rocket, LiteSpeed and Perfmatters can postpone scripts until the first scroll or click. The widget then starts late and a Right on page load item looks broken. Add tryclew.io/widget to the exclusions.
Your own strip in the same place
If the site already has its own bar or a cookie banner at the same edge, the two will overlap. Put the Clew bar at the other edge, or remove the old one.
A sticky header and the push-down variant
A header with position: sticky measures itself against the page body. If you chose the push-down variant, scroll your own site to the bottom and back before publishing.
Questions and answers
Do I need a notification-bar plugin?
No. Clew installs as one line in the theme or through a code-snippet plugin; the bar itself is created and taken down in the Clew panel, with no edits to the site.
Will it clash with my theme’s own notice?
If the theme already shows a strip at the same edge, the two overlap. Put the Clew bar at the other edge, or turn the theme’s notice off.
Does it work on WordPress.com?
Plugins such as WPCode need a WordPress.com Business plan or higher. Self-hosted WordPress works on any hosting.
Can I show the bar on one page only?
Yes: put the address, or the start of it, in Where to show (page URL) — your pricing page or a section of the catalogue, say.
How do I take the bar down when the offer ends?
Set the tour back to Draft in the list. The strip disappears on the next page load; the code stays on the site.
What else you can add on WordPress
- How to add a popup to a WordPress site without a developer
- How to create a product tour on WordPress without a developer
- How to add a tooltip on WordPress without a developer
- How to create an interactive product guide on WordPress without a developer
- How to add a rating popup to a WordPress site without a developer
- How to make an image popup on a WordPress site without a developer
- How to add a survey popup to a WordPress site without a developer