Header Footer Code Manager


Header Footer Code Manager by 99 Robots is a easy interface to add snippets to the header or footer or above or below the content of your page.


  • Never have to worry about inadvertently breaking your site by adding code
  • Avoid inadvertently placing snippets in the wrong place
  • Eliminate the need for a dozen or more silly plugins just to add a small code snippet – Less plugins is always better!
  • Never lose your code snippets when switching or changing themes
  • Know exactly which snippets are loading on your site, where they display, and who added them


  • Add an unlimited number of scripts and styles anywhere and on any post / page
  • Manage which posts or pages the script loads
  • Supports custom post types
  • Supports ability to load only on a specific post or page, or latest posts
  • Control where exactly on the page the script is loaded – head, footer, before content, or after content
  • Script can load only on desktops or mobile. Enable or disable one or the other.
  • Use shortcodes to manually place the code anywhere
  • Label every snippet for easy reference
  • Plugin logs which user added and last edited the snippet, and when


  1. Site wide on every post / page
  2. Specific post
  3. Specific page
  4. Specific category
  5. Specific tag
  6. Specific custom post type
  7. Latest posts only (you choose how many)
  8. Manually place using shortcodes


  1. Head section
  2. Footer
  3. Top of content
  4. Bottom of content


  • Show on All Devices
  • Only Desktop
  • Only Mobile Devices


  • Google Analytics
  • Google Adsense
  • Google Tag Manager
  • Clicky Web Analytics or other analytics tracking scripts
  • Chat modules such as Olark, Drip, or
  • Pinterest site verification
  • Facebook Pixels, Facebook Scripts, Facebook og:image Tag
  • Google Conversion Pixels
  • Twitter
  • Heatmaps from Crazy Egg, notification bars Hello Bar, etc.
  • It can accept ANY code snippet (HTML / Javascript / CSS) from any service
  • and the list goes on and on…


If using this plugin on a multisite network, please make sure that the plugin is activated on a subsite level only.

Plugin Information


  • HFCM Settings
  • Dashboard - All Snippets
  • Add New Snippet - Read the documentation at: http://www.draftpress.com/docs/header-footer-code-manager
  • Choose where you want your snippet to be displayed


  1. Upload 99robots-header-footer-code-manager to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to plugins page to see instructions for shortcode and php template tags

NOTE: If using this plugin on a multisite network, please make sure that the plugin is activated on a subsite level only.

Preguntas frecuentes

Q. Why do my scripts appear as text on the website?

A. Please make sure to enclose your script within script tags – <> Insert Script Here <>.

Q. Where are this plugin’s Settings located?

A. After activating the plugin, you can click on settings link under the plugin name OR you can click the HFCM tab on the left side navigation. From there, you can add, edit, remove, and review code snippets.

Q. How do I add code snippets to all my posts/pages?

A. With the version 1.1.4 of the HFCM plugin, we have replaced the Specific Custom Post Types with the ability to add code to All Post Types which include posts, pages, attachments and custom post types.

Q. I have a question

A. Since this is a free plugin, please ask all questions on the support forum here on WordPress.org. We will try to respond to every question within 48 hours.

Q. How can I request a feature or encourage future development?

A. Free plugins rely on user feedback. Therefore, the best thing you can do for us is to leave a review to encourage others to try the plugin. The more users, the more likely newer features will be added. That’s a very small thing to ask for in exchange for a FREE plugin.

Q. Do you support X or Y tracking scripts?

A. If your script is not supported, just let us know and we’ll look into it immediately. We will do our best to ensure all reputable services are supported. When requesting support for a particular script, it would be nice to get a sample of the script so that we can see its structure.


19 de julio de 2021
I have been using it for several months now and it has been extremely useful for inserting header codes and generating featured images that attract traffic to my website.
10 de junio de 2021
Thank you for this great plugin which of all things helped me improve my Google page speed rating! Over the years I tried different plugins which add code in the header or footer, but most are either site wide or just on specific pages, so I basically used a combo to achieve the results I wanted. These days are gone! Your plugin is fantastic because it lets you do both, all this from one central admin point, which is both extremely useful and easy to use. In my specific case, there are numerous pages where I do not need a script, and removing the scripts from these pages helped gain on the Google Page Speed. A very valuable outcome! Thanks again
Leer todas las 186 reseñas

Colaboradores y desarrolladores

«Header Footer Code Manager» es un software de código abierto. Las siguientes personas han colaborado con este plugin.


Traduce «Header Footer Code Manager» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios


* FIXED: Warnings – Undefined Variables
* UPDATED: Compatibility with WordPress 5.7.1


* UPDATED: Compatibility with WordPress 5.6.1


* FIXED: Specific Taxonomy Snippets showing on archives with at least one instance.
* UPDATED: Compatibility with WordPress 5.5.0


* UPDATED: Compatibility with WordPress 5.4.0
* FIXED: Warnings and Exclude Pages/Posts showing up on Shortcode Only screen


* FIXED: Specific Pages targeting Blog index page, even when it is not selected.


* FIXED: Unable to target Blog index page


* UPDATED: All snippets list now shows 20 snippets in the first page instead of 10
* ADDED: Replaced Specific Custom Post Types under Site Display to include the functionality to add code snippets to all post types, including posts, pages, custom post types & attachments
* UPDATED: Compatibility with WordPress 5.2.2


* UPDATED: Compatibility with WordPress 5.1.1


* FIXED: Blank page on dismissing notice when on a few admin pages
* UPDATED: Admin notice will now only show on the HFCM plugin admin pages


* FIXED: Warning – Unexpected Output – headers already sent


* UPDATED: Code Optimization
* UPDATED: Added plugin settings link, and update documentation.
* Compatible with WordPress 5.0.2


* UPDATED: Code Optimization


* FIXED: Updated obsolete code causing errors.


* ADDED: Functionality to Exclude Posts and Pages from the Site Wide option.


* FIXED: Latest Posts dropdown selection always resets to 1 on save / update.


* UPDATED: «All Snippets» page to show 10 snippets before pagination starts.


* FIXED: style-admin.css not loading on «Add New Snippet» page.
* FIXED: Post List not loading when selecting «Specific Posts» in «Site Display» under Add New Snippet.


* Compatible with WordPress 4.8


* FIXED: Updated code triggering a fatal error for sites with older PHP versions.


* FIXED: Updated code triggering a fatal error for sites with older PHP versions; now compatible.


* Initial release – HFCM is born! 🙂