WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Stefano Lissa v3.3.6

Head, Footer and Post Injections

Head and Footer plugin lets you to add HTML code to the head and footer sections of your site pages, inside posts... and more!

Head, Footer and Post Injections

The facts

Rating
4.9★ from 735
Active installs
200k+
Price
Free
Last updated
28 Mar 2026
Added
Apr 2008
Requires WP
6.1
Tested up to
WP 6.9.7
Requires PHP
7.0
Downloads
5,845,130

Our analysis

AI-assisted

Head, Footer and Post Injections is a WordPress plugin that allows you to manage various tracking codes and scripts from a central location. You can insert codes for services like Google Analytics and Facebook Pixel without needing multiple plugins. The plugin supports both desktop and mobile injections and enables the use of PHP code for added logic.

This plugin is suitable for users who want a streamlined way to add scripts to their WordPress site without being tied to a specific theme. It also includes features for injecting codes into AMP pages and allows for post-specific configurations.

Best for: This plugin is best for WordPress users looking to manage tracking codes efficiently across their site.

What it does well

  • Centralized management of tracking codes
  • Supports PHP code for logic in injections
  • Distinct injection options for mobile and desktop
  • Compatible with AMP pages
  • Allows for post-specific code injections

Where it falls short

  • Cannot change menu or footer layout
  • bbPress injection features are being removed

Verdict

Head, Footer and Post Injections offers a practical solution for managing various scripts on your site. It is particularly useful for those who require flexibility in code placement.

From the developer

Stefano Lissa's own description of Head, Footer and Post Injections, lightly tidied.

Why you have to install 10 plugins to add Google Analytics, Facebook Pixel, custom
tracking code, Google DFP code, Google Webmaster/Alexa/Bing/Tradedoubler verification code and so on…

With Header and Footer plugin you can just copy the code those services give you
in a centralized point to manage them all. And theme independent: you can change your theme
without loosing the code injected!

Injection points and features

  • in the page section where most if the codes are usually added
  • just after the tag as required by some JavaScript SDK (like Facebook)
  • in the page footer (just before the tag)
  • recognize and execute PHP code to add logic to your injections
  • distinct desktop and mobile injections

AMP

A new AMP dedicated section compatible with AMP plugin lets you to inject specific codes in
AMP pages. Should be ok even with other AMP plugins.

Post Top and Bottom Codes

Do you need to inject a banner over the post content or after it? No problem. With Header and
Footer you can:

  • Add codes on top, bottom and in the middle of posts and pages
  • Differentiate between mobile and desktop (you don’t display the same ad format on both, true?)
  • Separate post and page configuration
  • Native PHP code enabled
  • Shortcodes enabled

Special Injections

  • Just after the opening BODY tag
  • In the middle of post content (using configurable rules)
  • Everywhere on template (using placeholders)

bbPress

The specific bbPress injections are going to be removed. Switch to my
Ads for bbPress, which is more flexible and complete.

Limits

This plugin cannot change the menu or the footer layout, those features must be covered by your theme!

Official page: Header and Footer.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for community building.

Ultimate Member

Membership & community plugin with user profiles, registration & login, member directories, content re...

Free 200k+ installs 4.4★ (1,444)
WP ULike

One-click like buttons your visitors actually use, plus a built-in analytics dashboard that shows what your au...

Free 60k+ installs 4.8★ (281)
Better Messages

Real-time messaging and chat rooms for WordPress ecosystem: private conversations, public and private chat roo...

Free 10k+ installs 4.8★ (141)
wpForo Forum

Number one WordPress forum plugin with AI features. Full-fledged forum solution with modern forum design. Comm...

Free 20k+ installs 4.7★ (390)
Hubbub Lite

Your content is worth sharing. Let's makes it easier!

Free 30k+ installs 4.7★ (173)
WP User Manager

The most customizable profiles & community builder WordPress plugin with front-end login, registration, pr...

Free 10k+ installs 4.7★ (350)