Head, Footer and Post Injections

Descripción

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!

Puntos de inyección y características

  • 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
  • distintos modos de insertar para escritorio y para móvil

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

Inyecciones especiales

  • Justo después de la etiqueta BODY de apertura
  • In the middle of post content (using configurable rules)
  • En todas las partes en la plantilla (usando marcadores de posición)

bbPress

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

Límites

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

Official page: Header and Footer.

Other plugins by Stefano Lissa:

Traducción

You can contribute to translate this plugin in your language on WordPress Translate

Privacidad y RGPD

Este plugin no recopila ni almacena ningún dato de usuario.

FAQ

FAQs are answered on Header and Footer page.

Reseñas

21 de Marzo de 2026
This plugin is invaluable… but all of the sudden it’s very hard to find it in the WordPress plugin search function. I had to go back to another site is was already installed on, find it and download it. Not showing up anymore in WordPress Plugin Search.
3 de Diciembre de 2025
Has been my go-to header/footer injection plugin for years, works great and is consistently updated.
9 de Octubre de 2025
I’ve been using this a few years and I really appreciate the efficiency of it.
4 de Agosto de 2025
This is a great plugin for when you need something a little less common added to your site, like a custom cookie function, or even some off the beaten track analytics etc.
12 de Junio de 2025
The plugin was working fine, but suddenly one day it corrupted my website. It started appearing as dangerous on Google search, with warnings about fraud, and eventually began showing ads instead of my actual site content. I thought it was malware, so I restored backups, but the problem persisted. I then decided to deactivate all plugins and reactivate them one by one, until I got to this one and realized it was the culprit. It gave me a huge scare and cost me a lot of time. I will not be using this plugin again.
Leer los 735 comentarios

Colaboradores & Desarrolladores

“Head, Footer and Post Injections” es software de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

“Head, Footer and Post Injections” ha sido traducido en 11 idiomas. Gracias a los traductores por sus contribuciones.

Traduce “Head, Footer and Post Injections” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN, o suscríbete al registro de desarrollo por RSS .

Historial de cambios

3.3.6

  • Version number fix

3.3.5

  • Fixed not visible options on the admin side

3.3.4

  • Improved the after “body” tag injection (Markus Sandelin)
  • Not completely removed the page buggering due to the possible use of “generic tags” (probably no one use)
  • Fixed a int conversion PHP warning
  • Started an admin page refresh

3.3.3

  • WP 6.9 check
  • PCP Check

3.3.1, 3.3.2

Breaking changes (see below)

  • Disabled by default PHP on multisite installations
  • Added constant HEADER_FOOTER_MULTISITE_ALLOW_PHP to be used on wp-config.php to enable PHP on multisite installations
  • Added constant HEADER_FOOTER_ALLOW_PHP to be used on wp-config.php to enable PHP (true by default for compatibility)