Header Footer Code Manager

Mô tả

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

Ảnh màn hình

  • 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

Cài đặt

  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.

Hỏi đáp

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.

Đánh giá

24 Tháng Mười Một, 2021
Appreciate it being a little free one that stays updated.
2 Tháng Mười Một, 2021
Great plugin. Easy to handle. Edit section looks tidied up.
2 Tháng Mười Một, 2021
When your client or marketing department comes with this pixel, that tracking code, and the other advertising analytics script... Header Footer Code Manager is your Swiss Army knife. Easily allows you to place code in header or footer, on any or all pages, and in a manageable organized fashion. Sure you can add code to your theme's header and footer. But it can be hard to keep organized, and if you don't use a child theme, any code that you add to your header or footer will get overwritten if you update your WordPress theme. Header Footer Code Manager also has features to include/exclude pages, specify mobile/desktop/all, activate/deactivate without removing, and has options for html/css/javascript code. Thanks for developing this helpful plugin!
Đọc tất cả 202 đánh giá

Người đóng góp & Lập trình viên

“Header Footer Code Manager” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Header Footer Code Manager” đã được dịch qua 6 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Header Footer Code Manager” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi


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


* FIXED: SQL Vulnerability with listing orderby
* FIXED: DbDelta query
* UPDATED: Compatibility with WordPress 5.8.1


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


* 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


* 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


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