Site-wide widgets on WordPress
Squarespace, Wix and Webflow all have a single box labelled something like “footer code” that puts a script on every page. WordPress does not — core has never shipped one, which is why every tutorial you find recommends a different plugin. For a Zyff widget, the plugin to use is Zyff's own. Zyff Widgets connects your site to your Zyff account with read-only access to your saved widgets, lists them in Settings > Zyff Widgets, and has an Every page option that prints the widget from WordPress's wp_footer hook on every front-end page, whatever the template. It stores each widget's id rather than its code, so there is nothing to re-paste when you edit the widget on Zyff. If you would rather install nothing, the snippet can go into a footer template part on a block theme, a Custom HTML widget in a footer widget area on a classic theme, or a two-line `wp_footer` hook in a child theme. Every route loads the widget once per page view on every page of the site. The one thing to avoid is editing a parent theme's files: the next theme update overwrites them and the widget disappears with no obvious cause.
Build and style the widget in the Zyff widget builder, then follow the WordPress steps below to put it on every page.
Recommended: the free Zyff Widgets plugin
On WordPress.org. It lists your saved widgets inside wp-admin and puts any of them on every page with one tick. WordPress 6.3 or later.
How to add a site-wide widget to WordPress
Build and save the widget
In any Zyff widget builder — the chat button, the popup, the announcement bar, the back-to-top button — set it up, then sign in with Google and save it. Saving is what puts the widget in your account, which is where the plugin finds it and what the embed code points at.
Install the plugin and connect
In wp-admin go to Plugins > Add New Plugin, search for “Zyff Widgets”, then install and activate it. Open Settings > Zyff Widgets, click Connect to Zyff, sign in on zyff.app and click Allow. The connection is read-only: the site can list your saved widgets' names, types and ids, and cannot create, change or delete anything.
Tick Every page and save
Still in Settings > Zyff Widgets, tick Every page next to the widget and click Save every-page widgets. The plugin prints it from wp_footer, which fires on every front-end page regardless of template, and loads the widget's script once per page. Only administrators can change this list.
Or add the code without the plugin
Copy the embed code from the builder — one <div> and one <script> tag. On a block theme, add a Custom HTML block to the bottom of Appearance > Editor > Patterns > Template Parts > Footer. On a classic theme, put a Custom HTML widget in a footer area under Appearance > Widgets. Or, with a CHILD theme active, add to its functions.php: add_action('wp_footer', function () { ?> ...paste the snippet here... <?php }); — the most reliable of the three, because it does not depend on a template rendering a particular area.
Purge your cache and check a real page
If you run WP Rocket, W3 Total Cache, LiteSpeed Cache or a host-level cache such as SiteGround, Kinsta or WP Engine, purge it. A cached copy of the old page is the usual reason a freshly added widget does not appear. Then load the site logged out — some caches serve uncached HTML to administrators, so it can look fine to you and be missing for everyone else.
WordPress-specific things worth knowing
There is no Code Injection screen in core
If you are following a tutorial that says “go to Settings > Header and Footer”, that screen belongs to a plugin, not to WordPress. The Zyff Widgets plugin's Every page option does that job for Zyff widgets only; the three manual routes need nothing installed.
The plugin only reads your widget list
Connecting gives the site read-only access to your saved widgets' names, types and ids. It cannot build, edit or delete a widget — that happens on zyff.app — and you can disconnect from the plugin's settings page or from your Zyff account. Widgets already placed, including every-page ones, keep showing after you disconnect.
Never edit a parent theme's functions.php
The next theme update overwrites the file and your widget vanishes with no error and no obvious cause. Use the plugin, a child theme, or one of the two block/widget routes, which store the snippet as content in the database instead.
WordPress.com needs a paid plan; WordPress.org does not
Self-hosted WordPress from wordpress.org runs plugins and script tags on any host and any plan. WordPress.com allows both on any paid plan — Personal and up — once the site's hosting features are activated. On the Free plan, or before activation, plugins cannot be installed and pasted scripts are stripped silently, so the widget simply never appears.
A footer widget area is not always every page
The widget-area route depends on the theme rendering that area, and plenty of themes hide the footer on a full-width or landing-page template. If the widget is missing on one template and present everywhere else, this is why — switch to the plugin's Every page option or the wp_footer route, which both print from the wp_footer hook.
Security plugins can strip a pasted script
Wordfence, Sucuri and some managed hosts filter script tags out of post content for non-administrator roles. If the snippet survives when you save but disappears from the saved copy, check the plugin's HTML-filtering settings, or use the Zyff Widgets plugin or the wp_footer route — both are code rather than content, so there is no script in the post to filter.
Widgets that belong on every page
Frequently asked questions
What is the easiest way to put a Zyff widget on every WordPress page?
Install the free Zyff Widgets plugin, connect your Zyff account, and tick Every page next to the widget in Settings > Zyff Widgets. The plugin prints it from the wp_footer hook on every front-end page, and editing the widget on Zyff updates it everywhere with nothing to re-paste. It runs on self-hosted WordPress, or on any paid WordPress.com plan once hosting features are activated.
How do I add a script to every page in WordPress without a plugin?
Three ways, all built in. On a block theme, add a Custom HTML block to the footer template part under Appearance > Editor. On a classic theme, add a Custom HTML widget to a footer widget area. Or add a wp_footer action in a child theme's functions.php, which is the most reliable of the three because it fires on every front-end page regardless of template.
Where exactly is wp_footer?
It is a hook, not a file. Themes call wp_footer() just before their closing body tag, and anything you attach to it prints there — which is what the Zyff Widgets plugin's Every page option does. That makes it the correct place for a floating widget, since the snippet loads after the page content rather than blocking it.
Why does the widget show on some pages and not others?
Almost always the footer widget-area route on a theme that hides the footer for certain templates — full-width pages, landing pages and some page-builder templates commonly drop it. Move to the plugin's Every page option or the wp_footer hook, neither of which depends on a template rendering a particular area.
Will Elementor or Divi break it?
No. Both sit on top of WordPress's normal footer output, so the plugin's Every page option and the wp_footer route work underneath them. Both also have their own element if you want the widget on a single page, and Elementor has its own site-wide Custom Code screen on Pro, which works too.
Do I need the Business plan on WordPress.com?
No. Since April 2026, any paid WordPress.com plan, starting with Personal, can install plugins and run custom code once the site's hosting features are activated — so either route works. The Free plan cannot, and before activation a paid site has the same limits: pasted script tags are stripped silently. None of this applies to self-hosted WordPress from wordpress.org, which runs the plugin and the snippet on any host and any plan.
I added it and nothing happened. What now?
Purge every cache you run, then load the page logged out — many caching setups serve uncached HTML to administrators, so a missing widget looks fine to you. If it is still absent, view the page source and search for zyff: if the script tag is not there, check that Every page is ticked and saved, or that nothing stripped your pasted snippet, and if it is there, open the browser console for a warning.