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…

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


Installation Instructions
  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
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.


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.

Easy to use

Good plugin! It’s very efficient to re-use snippets on different posts/pages.

I wish it would be possible to optionally grant editors the right to edit the snippets. At the moment, only admins can use this plugin.

Modular and lightweight!

I really appreciate your approach, with snippets that are singularly activable / deactivable. Thank you for the plugin!

Leggi tutte le 7 recensioni

Contributori & Sviluppatori

“Header Footer Code Manager” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.




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