Title: Header Footer Code Manager
Author: DraftPress Team
Published: <strong>August 26, 2016</strong>
Last modified: January 22, 2026

---

Search plugins

![](https://ps.w.org/header-footer-code-manager/assets/banner-772x250.png?rev=2681303)

![](https://ps.w.org/header-footer-code-manager/assets/icon-256x256.png?rev=2681303)

# Header Footer Code Manager

 By [DraftPress Team](https://profiles.wordpress.org/draftpress/)

[Download](https://downloads.wordpress.org/plugin/header-footer-code-manager.1.1.44.zip)

 * [Details](https://wordpress.org/plugins/header-footer-code-manager/#description)
 * [Reviews](https://wordpress.org/plugins/header-footer-code-manager/#reviews)
 *  [Installation](https://wordpress.org/plugins/header-footer-code-manager/#installation)
 * [Development](https://wordpress.org/plugins/header-footer-code-manager/#developers)

 [Support](https://wordpress.org/support/plugin/header-footer-code-manager/)

## Description

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.

#### BENEFITS

 * 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

#### FEATURES

 * 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

#### PAGE DISPLAY OPTIONS

 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

#### INJECTION LOCATIONS

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

#### DEVICE OPTIONS

 * Show on All Devices
 * Only Desktop
 * Only Mobile Devices

#### SUPPORTED SERVICES

 * 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…

### MULTISITE NOTE

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

> 
> #### Plugin Information
> 
>  * [Plugin Site](https://draftpress.com/products/header-footer-code-manager/)
>  * [Plugin Documentation](https://www.draftpress.com/docs/header-footer-code-manager)
>  * [Free Plugins on WordPress.org](https://profiles.wordpress.org/99robots#content-plugins)
>  * [Premium Plugins](https://www.draftpress.com/products)

## Screenshots

 * [[
 * 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
 * [[
 * HFCM PRO vs. FREE

## Installation

 1. Upload `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.

## FAQ

### 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.

### Q. What are the differences between HFCM Pro vs. Free?

A. The PRO version contains many more powerful features not available in the FREE
version in addition to forthcoming features. See the [PRO vs FREE differences](https://draftpress.com/wp-content/uploads/2024/06/hfcm-pro-vs-free-differences.png).

## Reviews

![](https://secure.gravatar.com/avatar/f4bb8994e8f0fb7f116c6caff5a9b3fe53aa61f7cc9f06040012cc49a05eeb73?
s=60&d=retro&r=g)

### 󠀁[Must have plugin](https://wordpress.org/support/topic/must-have-plaugin/)󠁿

 [callawayx12](https://profiles.wordpress.org/callawayx12/) April 12, 2026

This is a must have plugin. It’s easy to use and understand and makes life so much
easier

![](https://secure.gravatar.com/avatar/922c4ecdc8b2ae25a375b8acb58abe4b519d8ef5448cdf74f0c88ceb308c1b49?
s=60&d=retro&r=g)

### 󠀁[Love It!](https://wordpress.org/support/topic/love-it-4354/)󠁿

 [bostonstrippers](https://profiles.wordpress.org/bostonstrippers/) March 12, 2026
1 reply

It’s a great plugin, I have it on all my wp sites.

![](https://secure.gravatar.com/avatar/fcee6b7d6774c3a6d69e95086d82d7004d0a64f743f7e0e30c2a393fbd9b6fd6?
s=60&d=retro&r=g)

### 󠀁[Extremely useful and convenient!](https://wordpress.org/support/topic/extremely-useful-and-convenient/)󠁿

 [butoru5](https://profiles.wordpress.org/butoru5/) February 13, 2026 1 reply

I am very happy with this plugin. It is easy to use and gives a chance to organize
all your custom styles and scripts in the most efficient way. In the past I had 
one long stylesheet with my custom styles loaded globally to each of my website 
pages, It was very ineffective because most of those styles were intended for one
or two pages only. Once I installed HFCM plugin I succeeded to organize all my styles
individually for those pages where I really need them. The same for javascript pieces.
It is very easy to start using HFCM. Its user interface is very intuitive so you
don’t need to read manuals or whatch training videos – just install and use. Thanks
to authors!

![](https://secure.gravatar.com/avatar/876bbcc78e75a80a0c6fab760f946e822b46dbf15bed0c44689382bc81d4746a?
s=60&d=retro&r=g)

### 󠀁[Very simple and useful](https://wordpress.org/support/topic/very-simple-and-useful-38/)󠁿

 [MickFrench](https://profiles.wordpress.org/mickfrench/) December 29, 2025 1 reply

Thank you to keep it free !

![](https://secure.gravatar.com/avatar/44153993ed325c1feb9de91bceb490431b586b5fb0e47a382462450495baa287?
s=60&d=retro&r=g)

### 󠀁[Отличный плагин](https://wordpress.org/support/topic/%d0%be%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d1%8b%d0%b9-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd-992/)󠁿

 [vini125377458](https://profiles.wordpress.org/vini125377458/) December 11, 2025
1 reply

Удобный простой , все работает !! Спасибо разработчику !

![](https://secure.gravatar.com/avatar/38fb0a48dbaf039ae5e7865ff1d79ff871ef51c2d9ddaa479102d45139358238?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-10885/)󠁿

 [Vladimir Unguru](https://profiles.wordpress.org/vladunguru/) December 2, 2025 
1 reply

I just installed it and it simply worked! Very flexible.Just one question: Does 
the “Snippet Type” setting change the behavior of the snippet, or is it just a label
that makes it easier to keep track of the type of code inside?

 [ Read all 305 reviews ](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/)

## Contributors & Developers

“Header Footer Code Manager” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ DraftPress Team ](https://profiles.wordpress.org/draftpress/)
 *   [ 99robots ](https://profiles.wordpress.org/99robots/)
 *   [ charliepatel ](https://profiles.wordpress.org/charliepatel/)

“Header Footer Code Manager” has been translated into 11 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/header-footer-code-manager/contributors)
for their contributions.

[Translate “Header Footer Code Manager” into your language.](https://translate.wordpress.org/projects/wp-plugins/header-footer-code-manager)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/header-footer-code-manager/),
check out the [SVN repository](https://plugins.svn.wordpress.org/header-footer-code-manager/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/header-footer-code-manager/)
by [RSS](https://plugins.trac.wordpress.org/log/header-footer-code-manager/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.44

2026-01-22
 * ADDED: Compatibility with WordPress 6.9

#### 1.1.43

2025-10-03
 * ADDED: Compatibility with WordPress 6.8.3

#### 1.1.42

2025-08-27
 * FIXED: Import functionality not working

#### 1.1.41

2025-08-05
 * ADDED: Compatibility with WordPress 6.8.2 * IMPROVED: Specific Post
Types now includes options to display snippet on only posts, or archives, or both*
FIXED: Snippets not showing on archives of specific post types

#### 1.1.40

2025-05-06
 * ADDED: Compatibility with WordPress 6.8.1

#### 1.1.39

2024-09-27
 * ADDED: Compatibility with WordPress 6.6.2 * FIXED: NULL parent slug
value in the submenu

#### 1.1.38

2024-06-06
 * ADDED: Compatibility with WordPress 6.5.4

#### 1.1.37

2024-01-31
 * ADDED: Compatibility with WordPress 6.4.3

#### 1.1.36

2023-09-04
 * ADDED: Compatibility with WordPress 6.3.1

#### 1.1.35

2023-07-04
 * ADDED: WordPress nonce checks while performing bulk actions on the
snippets

#### 1.1.34

2023-06-27
 * FIXED: Check if Woocommerce installed before using its functions

#### 1.1.33

2023-06-26
 * FIXED: Snippets not showing up on Woocommerce product categories and
tags * UPDATED: Compatibility with WordPress 6.2.2 * UPDATED: Compatibility with
PHP 8.2

#### 1.1.32

2022-12-16
 * ADDED: Warning message to caution about file editing * FIXED: Snippet
including in case of rest api in some cases

#### 1.1.31

2022-12-09
 * ADDED: Warning message to caution users of using improper code or 
untrusted sources code that can break site or create security risks. * UPDATED: 
Compatibility with WordPress 6.1.1

#### 1.1.30

2022-11-09
 * FIXED: Proper checks for user access and capabilities * UPDATED: Compatibility
with WordPress 6.1

#### 1.1.29

2022-09-21
 * FIXED: Description not showing on the RSS feed page

#### 1.1.28

2022-09-18
 * FIXED: Check for not rendering the snippets on the RSS feed page *
UPDATED: Compatibility with WordPress 6.0.2

#### 1.1.27

2022-07-15
 * FIXED: Internationalization support for PO Translation files. Plugin
now supports translation to additional languages in addition to the base language,
English. * ADDED: 1 Translation for Hindi. * UPDATED: Compatibility with WordPress
6.0.1

#### 1.1.26

2022-07-01
 * FIXED: Code snippet sanitization, removed due to incompatibility with
functionality

#### 1.1.25

2022-06-29
 * UPDATED: Code improvements as per WordPress standards

#### 1.1.24

2022-06-25
 * FIXED: XSS Security Vulnerability fix

#### 1.1.23

2022-06-10
 * UPDATED: Compatibility with WordPress 6.0

#### 1.1.22

2022-05-10
 * FIXED: PHP warnings when adding/editing snippets * UPDATED: Add confirmation
before deleting snippets * UPDATED: Copy shortcode button

#### 1.1.21

2022-04-21
 * ADDED: Copy shortcode to clipboard buttons on edit snippet page and
on snippet list page * UPDATED: Compatibility with WordPress 5.9.3 * UPDATED: Included
Custom Taxonomies for snippets * UPDATED: Snippet code editor size * ADDED: Increased
Number of Allowed Posts/Page Exclusions to 200K+ posts.

#### 1.1.20

2022-03-26
 * FIXED: MultiSite issue with subsites in network

#### 1.1.19

2022-03-24
 * FIXED: MultiSite slow query issue * UPDATED: Compatibility with WordPress
5.9.2

#### 1.1.18

2022-03-05
 * ADDED: Ability to apply snippets to search, home, archive page only*
ADDED: Snippet search functionality * ADDED: Snippet type filter * ADDED: Snippet
sort by location * ADDED: Delete snippet button on edit snippet page

#### 1.1.17

2022-02-17
 * FIXED: XSS vulnerability with request parameter page in the HFCM snippet
listing screen * UPDATED: Compatibility with WordPress 5.9 * UPDATED: Text & Plugin
assets * UPDATED: Snippet column length

#### 1.1.16

2021-12-13
 * FIXED: Author not showing on Add/Edit snippet screen * ADDED: PRO 
banner * UPDATED: Text & Plugin icon

#### 1.1.15

2021-10-26
 * UPDATED: Code improvements as per WordPress standards * Proper escaping*
Proper variable naming * Added recommended spacing by WordPress

#### 1.1.14

2021-10-08
 * FIXED: SQL Vulnerability with listing orderby * FIXED: DbDelta query*
UPDATED: Compatibility with WordPress 5.8.1

#### 1.1.13

2021-09-06
 * FIXED: bool function return type * UPDATED: Minimum required PHP version*
UPDATED: Lowest WordPress version that the plugin will work on

#### 1.1.12

2021-09-04
 * FIXED: Import upload file type error * FIXED: Location options for
site display (specific categories) * UPDATED: File format for the import/export 
files * UPDATED: Compatibility with WordPress 5.8

#### 1.1.11

2021-08-10
 * FIXED: Warnings – Undefined Variables * FIXED: Selectize issue of 
not able to select first option from the dropdown * ADDED: Snippet types * ADDED:
Code Editor in place of textarea * ADDED: Import/Export Snippets * UPDATED: Compatibility
with WordPress 5.8

#### 1.1.10

2021-04-23
 * FIXED: Warnings – Undefined Variables * UPDATED: Compatibility with
WordPress 5.7.1

#### 1.1.9

2021-02-18
 * UPDATED: Compatibility with WordPress 5.6.1

#### 1.1.8

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

#### 1.1.7

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

#### 1.1.6

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

#### 1.1.5

2019-08-29
 * FIXED: Unable to target Blog index page

#### 1.1.4

2019-08-15
 * 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

#### 1.1.3

2019-05-03
 * UPDATED: Compatibility with WordPress 5.1.1

#### 1.1.2

2019-01-07
 * 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

#### 1.1.1

2018-12-31
 * FIXED: Warning – Unexpected Output – headers already sent

#### 1.1.0

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

#### 1.0.9

2018-10-09
 * UPDATED: Code Optimization

#### 1.0.8

2018-10-04
 * FIXED: Updated obsolete code causing errors.

#### 1.0.7

2018-10-01
 * ADDED: Functionality to Exclude Posts and Pages from the Site Wide
option.

#### 1.0.6

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

#### 1.0.5

2018-06-14
 * UPDATED: “All Snippets” page to show 10 snippets before pagination
starts.

#### 1.0.4

2018-05-23
 * 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.

#### 1.0.3

2017-06-09
 * Compatible with WordPress 4.8

#### 1.0.2

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

#### 1.0.1

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

#### 1.0.0

2016-7-20
 * Initial release – HFCM is born! 🙂

## Meta

 *  Version **1.1.44**
 *  Last updated **3 months ago**
 *  Active installations **600,000+**
 *  WordPress version ** 4.9 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 5.6.20 or higher **
 *  Languages
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/header-footer-code-manager/),
   [Dutch](https://nl.wordpress.org/plugins/header-footer-code-manager/), [English (US)](https://wordpress.org/plugins/header-footer-code-manager/),
   [French (France)](https://fr.wordpress.org/plugins/header-footer-code-manager/),
   [German](https://de.wordpress.org/plugins/header-footer-code-manager/), [Russian](https://ru.wordpress.org/plugins/header-footer-code-manager/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/header-footer-code-manager/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/header-footer-code-manager/),
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/header-footer-code-manager/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/header-footer-code-manager/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/header-footer-code-manager/),
   and [Spanish (Venezuela)](https://ve.wordpress.org/plugins/header-footer-code-manager/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/header-footer-code-manager)
 * Tags
 * [code manager](https://wordpress.org/plugins/tags/code-manager/)[footer](https://wordpress.org/plugins/tags/footer/)
   [functions.php](https://wordpress.org/plugins/tags/functions-php/)[header](https://wordpress.org/plugins/tags/header/)
   [snippet](https://wordpress.org/plugins/tags/snippet/)
 *  [Advanced View](https://wordpress.org/plugins/header-footer-code-manager/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  293 5-star reviews     ](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/?filter=5)
 *  [  4 4-star reviews     ](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/?filter=3)
 *  [  3 2-star reviews     ](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/?filter=2)
 *  [  3 1-star reviews     ](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/header-footer-code-manager/reviews/)

## Contributors

 *   [ DraftPress Team ](https://profiles.wordpress.org/draftpress/)
 *   [ 99robots ](https://profiles.wordpress.org/99robots/)
 *   [ charliepatel ](https://profiles.wordpress.org/charliepatel/)

## Support

Issues resolved in last two months:

     1 out of 2

 [View support forum](https://wordpress.org/support/plugin/header-footer-code-manager/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://draftpress.com)