Simple plugin to add script to header and footer for individual pages & posts
As of April 2026, SOGO Add Script to Individual Pages Header Footer is a WordPress JS plugin with 20K+ active installations and a 4.3/5 rating from 31 reviews. It has been downloaded 382K+ times in total. Requires WordPress 3.5+ and PHP false+. Available on WordPress.org since 2013. Last updated 6 years ago — may have compatibility concerns. Downloads are down 10% this week. Top alternative: Clear Cache for Me.
Tested with Gutenberg
Create a simple way to add javascript code to individual page post or custom post type header and footer,
for example: add conversion code to thank you pages
add google re-marketing code to individual pages
and much more…
added in version 1.3 the option to add script \ style to all pages not only individual pages,
this will allow you to add Google re-marketing code to the entire site or Google Analytics
to use it goto “settings” – “Header Footer Settings”
New Features (version 3.0):
Added option for terms / category pages
New Features (version 2.3):
Added support for WooCommerce shop page.
we support now exclude individual pages form printing the header and footer scripts, this is supported by 2 checkboxes in each page\post
…
Awesome, please continue to provide best plugins.
This plugin is no longer usable, it injects a popup with ads to your website when a user clicks on something. God knows what other malicious codes is hidden inside.
This worked for me for a while, but the popup panel on each page would sit over things at the bottom of my pages, even preventing me from editing some blocks, which was irritating.
A colleague told me he was seeing ads all over the page; I said that was impossible, it’s an internal site, there should be no ads. Turns out it was this plugin, and I just had AdBlocker preventing me from seeing them! Bleh. Then I found out the Gutenberg HTML block can host script tags, so I just threw my page-specific JavaScript in there and boom, no more need of a plugin!
used to love this plugin until it got plastered with loads of ads. such a shame better alternatives out there which have no ads
Just what I need, very easy to insert my code on page/post.
| WordPress | 3.5+ requiredTested up to 5.3.21 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.