Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make…
About Head, Footer and Post Injections
The Header and Footer plugin allows you to easily add various tracking codes and verification codes to your website without the need for multiple plugins. It provides injection points for code placement and supports different configurations for mobile and desktop. Additionally, it offers special injections options and is compatible with AMP pages.Frequently asked questions
What is the purpose of the Header and Footer plugin?
The Header and Footer plugin allows you to add various codes, such as Google Analytics, Facebook Pixel, custom tracking code, Google DFP code, and verification codes, in a centralized point to manage them all. It is theme independent, meaning you can change your theme without losing the injected code.
What are the injection points and features of the Header and Footer plugin?
The Header and Footer plugin offers the following injection points and features:n- Injection in the page section where most of the codes are usually addedn- Injection just after the <head> tag as required by some JavaScript SDKs like Facebookn- Injection in the page footer (just before the </body> tag)n- Ability to recognize and execute PHP code for adding logic to your injectionsn- Distinct desktop and mobile injections
Does the Header and Footer plugin support AMP?
Yes, the Header and Footer plugin has a dedicated AMP section that is compatible with AMP plugins. You can inject specific codes in AMP pages.
Can you add codes on top, bottom, and in the middle of posts and pages using the Header and Footer plugin?
Yes, with the Header and Footer plugin, you can add codes on top, bottom, and in the middle of posts and pages. You can also differentiate between mobile and desktop injections, as well as configure separate settings for posts and pages.
Is there a specific injection for bbPress?
No, the specific bbPress injections are going to be removed. It is recommended to switch to the Ads for bbPress plugin, which offers more flexibility and completeness.
Changelog
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)
3.3.0
- Fixed readme
3.2.9
- WP 6.7.1 check
3.2.8
- WP 6.5.2 check
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
