Head, Footer and Post Injections

Wordpress Plugin
Download latest - 3.2.5

Developers

satollo

Download Stats

Today 2,938
Yesterday 3,694
Last Week 15,484
All Time 1,141,449
Banner 772x250

About WordPress SEO and Facebook Open Graph: I was very unpleased by Yoast invitation to remove my plugin, and it's not the case. Read more here.

Head and Footer Codes

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.

Other plugins by Stefano Lissa:

  • Hyper Cache
  • Newsletter
  • Include Me
  • Thumbnails
  • Ads for bbPress

Translation

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


Releases (20 )

Version Release Date Change Log
3.2.5 2022-06-15
  • Removed obsolete code
  • Escaped added to fixed and translated strings
3.2.4 2022-06-14
  • Importante security fix (update asap!)
3.2.3 2022-04-01
  • Updated meta information
3.2.2 2021-03-17
  • Fixed a couple of links in readme.txt
  • Updated compatibility with WP 5.7
3.2.1 2020-07-14
  • Fixed a PHP notice on admin side when creating a new page
3.2.0 2020-07-14
  • Restored controls of per post injection
  • Compatibility check with latest WP
  • Moved to PHP 5.6 syntax
3.1.5 2020-01-16
  • Fixed wrong injection in amp pages
3.1.4 2020-01-08
  • Performance optimization
  • Removed obsolete code
  • Improved AMP support
  • (Temporary) removed metaboxes (they were not working anyway)
3.1.3 2019-05-18
  • General compatibility check with latest WP
3.1.2 2018-08-07
  • Fixed a debug notice
3.1.1 2018-05-01
  • Privacy section in the readme.txt
3.1.0 2017-10-05
  • Removed the Facebook setting (move to a specialized plugin to have the Facebook Open Graph Meta)
  • Removed bbPress setting (please use bbpress ads)
  • Label fix
  • Removed notices
  • 5 post injections and 5 generic injections
3.0.7 2017-03-28
  • Added the filter "hefo_php_exec" to let a third party to disable the PHP execution
3.0.6 2017-03-13
  • Moved the donate png inside the plugin
3.0.5 2017-03-13
  • Debug notices fix
3.0.4 2017-02-22
  • Debug notices fix
3.0.2 2017-02-20
  • Version error (grrr)
3.0.1 2017-02-20
  • Fixed an error on menu
  • Added the subscription box
  • Fixed CSS and JS in admin panel
3.0.0 2017-02-20
  • Start adding support for amp and amp plugin
  • Removed the Open Graph support (it is now so complex that it became out of scope for this plugin)
  • Add a notice to use Ads for bbPress
  • Home page only injection fix
  • Removed old code
  • Little change to the name to be more descriptive
  • Removed local codemirror and added the one from cdnjs
2.0.3 2016-08-01