Head, Footer and Post Injections

Description

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.

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:

Privacy and GDPR

This plugin does not collect or process any personal user data.

Screenshots

  • Configuration panel for blog HEAD and footer sections
  • Configuration panel for post content
  • Configuration panel for Facebook "og" tags
  • Configurable snippets of code to be recalled on other configurations (to save time)

Installation

  1. Put the plugin folder into [wordpress_dir]/wp-content/plugins/
  2. Go into the WordPress admin interface and activate the plugin
  3. Optional: go to the options page and configure the plugin

FAQ

FAQs are answered on Header and Footer page.

Reviews

14 Sentyabr 2019
I can't figure out how to add more than one code. I have one code in the header so far & it works, but then I added another & the site it was for said that it couldn't find it pls help!
12 Sentyabr 2019
This makes it easier for someone who is not a developer to add code to the header of my website - I use it for the Facebook Pixel and a link to my podcast RSS feed so google podcasts can find it. Thank you!
04 Sentyabr 2019
This plugin simplifies my life. It is easy to use and versatile. It really helps me make a WordPress install in a specific directory blend into the rest of my non-Wordpress site.
21 Avqust 2019
This was exactly what we needed and was extremely easy. Took 5 seconds and fixed everything we needed it to.
15 Avqust 2019
I've seriously considered the Open Graph issue raised by Yoast when using Header and Footer. Looking at the functionality of both, at least in terms of the sites I manage, if I had to choose between them Header and Footer would win out hands down. The ability to quickly add script to headers and footers-- and to inject post content-- without having to worry about breaking your site is pretty awesome. This plugin has completely proven itself in my business-- without problems of any kind-- and I consider it one of the best written pieces of code in the wordpress database. And believe me, I've tried others. Couldn't operate without it. Excellent product!
Read all 495 reviews

Contributors & Developers

“Head, Footer and Post Injections” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

3.1.3

  • General compatibility check with latest WP

3.1.2

  • Fixed a debug notice

3.1.1

  • Privacy section in the readme.txt

3.1.0

  • 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