Header and Footer Scripts plugin allows you to add scripts to WordPress site's and just before closing tag.
As of April 2026, Header and Footer Scripts is a WordPress head plugin with 200K+ active installations and a 4.6/5 rating from 58 reviews. It has been downloaded 1.6M+ times in total. Requires WordPress 4.6+ and PHP 5.6+. Available on WordPress.org since 2014. Recently updated within the last 3 months. Downloads are down 14% this week. Top alternative: Head & Footer Code.
An essential WordPress plugin to easily insert scripts and styles (like Google Analytics, CSS, etc.) into your website’s header and footer.
Looking for a way to add Google Analytics, Facebook Pixel, or custom tracking code to your website’s header or footer?
Header and Footer Scripts is a simple yet powerful plugin that lets you inject code—such as Google Analytics, custom CSS, Facebook Pixel, and chat widgets—directly into your site’s header (<head>) or footer.
No bloat, no ads. This lightweight plugin simply does what it says: inserts code into your header and footer efficiently.
All you have to do is add the appropriate HTML code.
Don’t forget to wrap your code with proper tags.
<script type="text/javascript">
YOUR JS CODE HERE
</script>
Or fo…
Add a validation confirmation on save. Simple.
No one can tell that it’s saved.
One of the most useful plugins. I was looking for a plugin that allows adding Metadata. Then I founs this, and it is very useful. Thanks a lot for your efforts guys.
P.S. Thank you for the last update. It corrects some errors.
I’ve recently switched themes, and my previous theme allowed me to add custom CSS directly from the page editor. Unfortunately, my new theme lacks this feature. This plugin appears to be the only one that restores that functionality, enabling me to inject CSS specifically for individual pages. While other plugins offer global injection, which is certainly useful, I find that for unique pages like the homepage or special types, it’s essential to have the ability to add targeted styles without affecting the rest of the site. This plugin is a great solution for that!
P.S. No bacon was saved during or after this message. Nom nom nom. lol.
Awesome application works very well
If I could give more than 5 stars, I would. This plugin is a must-have for anyone running a WordPress site. It’s made my life so much easier.
| WordPress | 4.6+ requiredTested up to 6.9.4 |
| PHP | 5.6+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.