PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. Body
  4. Head & Footer Code
Head & Footer Code icon

Head & Footer Code

Easy add site-wide, category and article specific custom code before the closing </head> and </body>, or after opening <body> tag.

By Aleksandar Urošević·Body·Free
5(52 reviews)
·100K+ active installs·Updated 3 days ago
DownloadVisit HomepageCompare

As of April 2026, Head & Footer Code is a WordPress body plugin with 100K+ active installations and a 5/5 rating from 52 reviews. It has been downloaded 2.5M+ times in total. Requires WordPress 5.2+ and PHP 5.6+. Available on WordPress.org since 2015. Actively maintained — updated within the last month. Download volume is stable this week. Support resolution rate: 80%. Top alternative: Custom Body Class.

5/552 reviews
100K+active installs
80%resolved
11 yearssince 2015

Overview

Head & Footer Code plugin helps you add custom code snippets (JavaScript, CSS, or HTML) to the page even if you are not a programmer. It could be within the <head> (site verification code for various services, custom styles, meta or Webfont link), right after opening <body> (pixel tracking, analytics or heatmap code) or just before closing </body> tag.

Go to Tools → Head & Footer Code in WordPress Dashboard. Insert custom code to HEAD, BODY or FOOTER section (depending on what you have to do).

All magic is done by hooking to WordPress hooks wp_head, wp_footer and wp_body_open.

💡 Trial Head & Footer Code plugin on a free dummy website before you add it on your project: Test It Now!

Various code snippets are supported, including but not limited to:

  • Goo…
Read full description on WordPress.org

Screenshots

Ratings & Reviews

552 reviews
5 ★
50
4 ★
2
3 ★
0
2 ★
0
1 ★
0

Recent Reviews

Quick turn-around on bug report
by alangrah·10 months ago

Have used this plug-in reliably for years. Found a bug in the most recent version, reported it, and had it fixed within a few hours. Love that!

Thank you, you deserve 10 stars.
by tamertsl·11 months ago

Thank you, you deserve 10 stars.

Simplicity at its Finest
by Ryn·11 months ago·1 reply

I’ve been using this plugin for around two to three years now across three different sites I use to run my creative projects as a small-time writer. Of these sites, one is a writing and blogging page, and the other serves as a short link for social media sharing. I rely on being able to build accurate rich previews using meta tags, so when I share on social media, the correct information is supplied.

This plugin allows me to edit the header codes for each page and post directly by a simple custom box at the bottom of each editing page. Simple to use and set up with the settings provided, I can fine-tune each rich preview and schema document to the specifics for each new piece I create to help drive traffic to my site and improve my SEO (which I prefer to manage on my own terms).

I’ve relied on this plugin for so long that nothing else can replace it. It’s simple, tidy, and non-intrusive, which are highlights of this plugin. The user interface aligns with the WordPress back-end theme, is clear and easy to understand, and offers seamless integration with my workflow. In the instances where I’ve had to reach out for support, I’ve had a great experience working with the plugin author to resolve any issues that have occurred, which is a credit to their work and development.

Overall, if you need a straightforward, does-what-it-says-on-the-tin plugin to allow for customization of your header/footer coding for individual pages and posts (as well as globally to your site, if you need to add in Google Analytics or other coding to your site/project in general), this plugin is highly recommended.

Thank you for your continued development of this plugin, and for the work that you do!

Super-reliable plugin and great support!
by Kakemphaton·11 months ago

I have been using this plugin over many years, and it is absolutely great! 🙂

I once signaled a bug to the developer, and it was fixed within an hour! Thank you!

Thank you
by vgstudios·1 year ago·1 reply

Thank you for your great plugin. Also for handling the forum topic and fixing a small problem with new WordPress 6.7 version.

Download Trends

Today: 3KYesterday: 19KThis week: 54KPeriod total: 1.0M

Compatibility

WordPress5.2+ requiredTested up to 7.0
PHP5.6+ required

Version Adoption

v1.5
40.1%
v1.4
31.4%
v1.3
24.6%
Other
3.8%

Top Alternatives to Head & Footer Code

Custom Body Class icon
Custom Body Class
510K+ installsUpdated 8 months ago
ViewCompare
Header Footer Script Adder – Insert Code in Header, Body &amp; Footer icon
Header Footer Script Adder – Insert…
41.0K+ installsUpdated 5 months ago
ViewCompare
Add URL Slugs as Body Classes icon
Add URL Slugs as Body Classes
4.8800 installsUpdated 10 years ago
ViewCompare
Ambrosite Body Class Enhanced icon
Ambrosite Body Class Enhanced
5300 installsUpdated 14 years ago
ViewCompare
Slug as body class icon
Slug as body class
5100 installsUpdated 11 years ago
ViewCompare
View all body plugins →

Frequently Asked Questions

Changelog

1.5.7 (2026-04-01)

  • Improve: Allow Programmable Search Engine tags (PageMap, DataObject and Attribute)
  • Test: WordPress 7.0-RC2

1.5.6 (2026-03-23)

  • Fix: update routine 10 infinite loop on sites with huge number of posts (10k+)
  • Test: WordPress 7.0-beta6

1.5.5 (2026-03-11)

  • Fix: Remove set_time_limit from update.php to prevent fatal error on servers where it’s disabled
View full changelog on WordPress.org

Contributors

Aleksandar UroševićAleksandar UroševićTechWebUXTechWebUX
Plugin Info
Version
1.5.7
Last Updated
Apr 1, 2026
WP Requires
5.2+
Tested Up To
7.0
PHP Requires
5.6+
Active Installs
100K+
Downloads
2.5M+
Added
Aug 14, 2015
Business
Free

Tags

bodycodeheadfooterscript

Developer

A
Aleksandar Urošević
8 plugins0.1M+ total installs
View all plugins →

Quick Compare

Head & Footer Code vs Custom Body Class→Head & Footer Code vs Header Footer Script Adder – Insert…→Head & Footer Code vs Add URL Slugs as Body Classes→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.