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


  • Dashboard - All Snippets
  • Add New Snippet - Read the documentation at: http://www.99robots.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. 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.


Excellent plugin, nice interface

This plugin is very well designed and a pleasure to use. It provides so many options for quickly putting code anywhere you’d want and keeps it all very well organized. Easy enough to navigate for those who are not very technically inclined, but powerful and unobtrusive enough for those who are. The moment I need code to only appear on a specific page, this is the tool I reach for.


I was using 2 plugins to do what this one offers, and it broke as the one stopped allowing PHP in the header section. This plugin works perfectly to separate the OG:IMAGE for Facebook from Pinterest, and LinkedIN. Thanks so much!

Exactly right!

Of all the plugins and solutions I’ve used for adding code snippets through the years, HFCM is the only one that gets it. Where other plugins often only provide a text area or two for the custom code, HFCM is like a light-weight, simple and user-friendly version of Google Tag Manager built directly into WordPress.

This really should be a core feature of WordPress’ theme management, as that would save a lot of sites from plugin bloat and/or unnecessarily complicated child themes.

Header Footer Code Manager … 

  • makes good use of WordPress’ own interface and design language, which makes it clean and easy to use.
  • makes it easy to juggle multiple snippets of code, keeping the snippets separate, with toggle switches to de/activate snippets. (Which doesn’t just make for a better UX, but it’s great for identifying and fixing conflicts and bugs.)
  • allows for adding code both to the header and footer. Ideally, there’d be a few more positions (i.e. before and after content), but the shortcodes are great for working around any limitations in that regard.
  • has conditional logic for applying snippets to different sections of the site, and on different devices. I would appreciate even more logic (like based on logged in status, user level/permissions, page templates, post types, even geo-location, etc.), but I am not complaining.

Thanks, robots.

Simple, yet effective

Simple to use and pretty flexible. Would love to be able to assign snippets based on urls with wildcard support.

Leer todas las 10 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 log de desarrollo por RSS .

Registro de cambios


* 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! 🙂