Head, Footer and Post Injections
Stefano LissaWhy 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:
Translation
You can contribute to translate this plugin in your language on WordPress Translate
Privacy and GDPR
This plugin does not collect or process any personal user data.
FAQs are answered on Header and Footer page.
works and to the point
By BackY on June 28, 2024
Very useful light plugin that has helped me a lot in the last few months.
Great plugin
By wp2admibp2 on May 25, 2024
Great plugin.
Simple. Effective
By arrowheadpark on March 30, 2024
This plugin has been great to work with. No problems.
Simply works
By willemfm on March 4, 2024
Perfect! Plugin works flawlessly and effortlessly.
Great plugin, staple of sites I build
By mrforsythexeter on March 1, 2024
Couldn't be simpler to use.
Excellent Plugin
By cath31 on February 25, 2024
Je l'utilise depuis plusieurs mois et je n'ai eu aucun problème. Il m'est très utile.
Does The Job
By thebish75 on February 16, 2024
Does the job it is intended to do.
Faff free header injection
By steveroot on February 2, 2024
This plugin is perfect.
Add custom code (for me, a javascript file for plausible.io integration) into whichever parts of your templates you need. Clear and concise separation and options for locations (Add this to header, add this only on the home page header, add this after the body, add this to AMP pages... and many more than I need).
Everything I need and more
By omnipolar on January 9, 2024
Fantastic plugin! Comprehensive and detailed options.
Thank you!
Extremely useful
By psiworks on January 4, 2024
Extremely useful! Always there when I need it.
3.2.8
- WP 6.5.2
3.2.7
- Added Custom Post Types
3.2.6
- Fixed PHP short open tag
3.2.5
- Removed obsolete code
- Escaped added to fixed and translated strings
3.2.4
- Possible security fix
3.2.3
- Updated meta information
3.2.2
- Fixed a couple of links in readme.txt
- Updated compatibility with WP 5.7
3.2.1
- Fixed a PHP notice on admin side when creating a new page
3.2.0
- Restored controls of per post injection
- Compatibility check with latest WP
- Moved to PHP 5.6 syntax
3.1.6
- Fixed check_admin_referrer action
3.1.5
- Fixed wrong injection in amp pages
3.1.4
- Performance optimization
- Removed obsolete code
- Improved AMP support
- (Temporary) removed metaboxes (they were not working anyway)
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
- Put the plugin folder into [wordpress_dir]/wp-content/plugins/
- Go into the WordPress admin interface and activate the plugin
- Optional: go to the options page and configure the plugin
Reviews
4.9 out of 5 stars
- Version: 3.2.8
- Last updated: 5 months ago
- Active installations: 400K
- WordPress version: 5.1
- Tested up to: 6.5.5
- PHP version: 7.0