{"id":508,"date":"2008-04-07T18:39:23","date_gmt":"2008-04-07T18:39:23","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/header-footer\/"},"modified":"2026-03-28T12:46:19","modified_gmt":"2026-03-28T12:46:19","slug":"header-footer","status":"publish","type":"plugin","link":"https:\/\/gu.wordpress.org\/plugins\/header-footer\/","author":17086,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.3.6","stable_tag":"3.3.6","tested":"6.9.4","requires":"6.1","requires_php":"7.0","requires_plugins":null,"header_name":"Head, Footer and Post Injections","header_author":"Stefano Lissa","header_description":"","assets_banners_color":"2483c3","last_updated":"2026-03-28 12:46:19","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/donate\/?hosted_button_id=5PHGDGNHAYLJ8","header_plugin_uri":"https:\/\/www.satollo.net\/plugins\/header-footer","header_author_uri":"https:\/\/www.satollo.net","rating":4.9,"author_block_rating":0,"active_installs":300000,"downloads":5734080,"num_ratings":735,"support_threads":3,"support_threads_resolved":0,"author_block_count":0,"sections":["description","faq","changelog"],"tags":{"3.1.0":{"tag":"3.1.0","author":"satollo","date":"2017-10-05 19:43:57"},"3.1.1":{"tag":"3.1.1","author":"satollo","date":"2018-05-01 13:57:43"},"3.1.2":{"tag":"3.1.2","author":"satollo","date":"2018-08-07 09:18:44"},"3.1.3":{"tag":"3.1.3","author":"satollo","date":"2019-05-18 14:56:04"},"3.1.4":{"tag":"3.1.4","author":"satollo","date":"2020-01-08 15:16:04"},"3.1.5":{"tag":"3.1.5","author":"satollo","date":"2020-01-16 06:23:24"},"3.2.0":{"tag":"3.2.0","author":"satollo","date":"2020-07-14 05:35:09"},"3.2.1":{"tag":"3.2.1","author":"satollo","date":"2020-07-14 14:16:31"},"3.2.2":{"tag":"3.2.2","author":"satollo","date":"2021-03-17 13:26:26"},"3.2.3":{"tag":"3.2.3","author":"satollo","date":"2022-04-01 13:07:37"},"3.2.4":{"tag":"3.2.4","author":"satollo","date":"2022-06-14 05:36:49"},"3.2.5":{"tag":"3.2.5","author":"satollo","date":"2022-06-15 05:45:46"},"3.2.6":{"tag":"3.2.6","author":"satollo","date":"2023-07-23 07:36:14"},"3.2.7":{"tag":"3.2.7","author":"satollo","date":"2023-10-30 16:43:03"},"3.2.8":{"tag":"3.2.8","author":"satollo","date":"2024-04-18 06:56:10"},"3.2.9":{"tag":"3.2.9","author":"satollo","date":"2024-11-28 14:38:54"},"3.3.0":{"tag":"3.3.0","author":"satollo","date":"2024-11-28 14:45:58"},"3.3.1":{"tag":"3.3.1","author":"satollo","date":"2025-02-20 16:48:08"},"3.3.2":{"tag":"3.3.2","author":"satollo","date":"2025-02-20 16:53:59"},"3.3.3":{"tag":"3.3.3","author":"satollo","date":"2026-02-03 07:01:07"},"3.3.4":{"tag":"3.3.4","author":"satollo","date":"2026-03-26 13:33:26"},"3.3.5":{"tag":"3.3.5","author":"satollo","date":"2026-03-27 20:40:29"},"3.3.6":{"tag":"3.3.6","author":"satollo","date":"2026-03-28 12:46:19"}},"upgrade_notice":[],"ratings":{"1":6,"2":1,"3":4,"4":13,"5":711},"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3452717,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3452717,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3452723,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["3.1.0","3.1.1","3.1.2","3.1.3","3.1.4","3.1.5","3.2.0","3.2.1","3.2.2","3.2.3","3.2.4","3.2.5","3.2.6","3.2.7","3.2.8","3.2.9","3.3.0","3.3.1","3.3.2","3.3.3","3.3.4","3.3.5","3.3.6"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[321,1882,232,2640,1431],"plugin_category":[35,36,56],"plugin_contributors":[77808],"plugin_business_model":[],"class_list":["post-508","plugin","type-plugin","status-publish","hentry","plugin_tags-ads","plugin_tags-amp","plugin_tags-analytics","plugin_tags-footer","plugin_tags-header","plugin_category-advertising","plugin_category-analytics","plugin_category-social-and-sharing","plugin_contributors-satollo","plugin_committers-satollo"],"banners":{"banner":"https:\/\/ps.w.org\/header-footer\/assets\/banner-772x250.png?rev=3452723","banner_2x":"https:\/\/ps.w.org\/header-footer\/assets\/banner-1544x500.png?rev=3452717","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/header-footer\/assets\/icon-256x256.png?rev=3452717","icon_2x":"https:\/\/ps.w.org\/header-footer\/assets\/icon-256x256.png?rev=3452717","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Why you have to install 10 plugins to add Google Analytics, Facebook Pixel, custom\ntracking code, Google DFP code, Google Webmaster\/Alexa\/Bing\/Tradedoubler verification code and so on...<\/p>\n\n<p>With Header and Footer plugin you can just copy the code those services give you\nin a centralized point to manage them all. And theme independent: you can change your theme\nwithout loosing the code injected!<\/p>\n\n<h4>Injection points and features<\/h4>\n\n<ul>\n<li>in the  page section where most if the codes are usually added<\/li>\n<li>just after the  tag as required by some JavaScript SDK (like Facebook)<\/li>\n<li>in the page footer (just before the  tag)<\/li>\n<li>recognize and execute PHP code to add logic to your injections<\/li>\n<li>distinct desktop and mobile injections<\/li>\n<\/ul>\n\n<h4>AMP<\/h4>\n\n<p>A new AMP dedicated section compatible with <a href=\"https:\/\/wordpress.org\/plugins\/amp\">AMP plugin<\/a> lets you to inject specific codes in\nAMP pages. Should be ok even with other AMP plugins.<\/p>\n\n<h4>Post Top and Bottom Codes<\/h4>\n\n<p>Do you need to inject a banner over the post content or after it? No problem. With Header and\nFooter you can:<\/p>\n\n<ul>\n<li>Add codes on <em>top<\/em>, <em>bottom<\/em> and in the <em>middle<\/em> of posts and pages<\/li>\n<li>Differentiate between <em>mobile<\/em> and <em>desktop<\/em> (you don't display the same ad format on both, true?)<\/li>\n<li>Separate post and page configuration<\/li>\n<li>Native PHP code enabled<\/li>\n<li>Shortcodes enabled<\/li>\n<\/ul>\n\n<h4>Special Injections<\/h4>\n\n<ul>\n<li>Just after the opening BODY tag<\/li>\n<li>In the middle of post content (using configurable rules)<\/li>\n<li>Everywhere on template (using placeholders)<\/li>\n<\/ul>\n\n<h4>bbPress<\/h4>\n\n<p>The specific bbPress injections are going to be removed. Switch to my\n<a href=\"https:\/\/wordpress.org\/ads-bbpress\">Ads for bbPress<\/a>, which is more flexible and complete.<\/p>\n\n<h4>Limits<\/h4>\n\n<p>This plugin cannot change the menu or the footer layout, those features must be covered by your theme!<\/p>\n\n<p>Official page: <a href=\"https:\/\/www.satollo.net\/plugins\/header-footer\">Header and Footer<\/a>.<\/p>\n\n<p>Other plugins by Stefano Lissa:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/www.satollo.net\/plugins\/monitor\">Monitor<\/a><\/li>\n<li><a href=\"https:\/\/www.satollo.net\/plugins\/hyper-cache\">Hyper Cache<\/a><\/li>\n<li><a href=\"https:\/\/www.thenewsletterplugin.com\">Newsletter<\/a><\/li>\n<li><a href=\"https:\/\/www.satollo.net\/plugins\/include-me\">Include Me<\/a><\/li>\n<li><a href=\"https:\/\/www.satollo.net\/plugins\/thumbnails\">Thumbnails<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/ads-bbpress\/\">Ads for bbPress<\/a><\/li>\n<\/ul>\n\n<h4>Translation<\/h4>\n\n<p>You can contribute to translate this plugin in your language on <a href=\"https:\/\/translate.wordpress.org\">WordPress Translate<\/a><\/p>\n\n<h3>Privacy and GDPR<\/h3>\n\n<p>This plugin does not collect or process any personal user data.<\/p>\n\n<!--section=faq-->\n<p>FAQs are answered on <a href=\"https:\/\/www.satollo.net\/plugins\/header-footer\">Header and Footer<\/a> page.<\/p>\n\n<!--section=changelog-->\n<h4>3.3.6<\/h4>\n\n<ul>\n<li>Version number fix<\/li>\n<\/ul>\n\n<h4>3.3.5<\/h4>\n\n<ul>\n<li>Fixed not visible options on the admin side<\/li>\n<\/ul>\n\n<h4>3.3.4<\/h4>\n\n<ul>\n<li>Improved the after \"body\" tag injection (Markus Sandelin)<\/li>\n<li>Not completely removed the page buggering due to the possible use of \"generic tags\" (probably no one use)<\/li>\n<li>Fixed a int conversion PHP warning<\/li>\n<li>Started an admin page refresh<\/li>\n<\/ul>\n\n<h4>3.3.3<\/h4>\n\n<ul>\n<li>WP 6.9 check<\/li>\n<li>PCP Check<\/li>\n<\/ul>\n\n<h4>3.3.1, 3.3.2<\/h4>\n\n<p>Breaking changes (see below)<\/p>\n\n<ul>\n<li>Disabled by default PHP on multisite installations<\/li>\n<li>Added constant HEADER_FOOTER_MULTISITE_ALLOW_PHP to be used on wp-config.php to enable PHP on multisite installations<\/li>\n<li>Added constant HEADER_FOOTER_ALLOW_PHP to be used on wp-config.php to enable PHP (true by default for compatibility)<\/li>\n<\/ul>","raw_excerpt":"Head and Footer plugin lets you to add HTML code to the head and footer sections of your site pages, inside posts... and more!","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=508"}],"author":[{"embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/satollo"}],"wp:attachment":[{"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=508"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=508"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=508"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=508"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=508"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/gu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}