Type to search.

#246 by installs

Header and Footer Scripts

by Anand KumarVersion 2.4.2

Header and Footer Scripts plugin allows you to add scripts to WordPress site's and just before closing tag.

Active installs
200,000+
#246 of 1,000
Downloads, all time
1.8M
1,753,758
Downloads, 30 days
13K
3.1K in the last 7
Rating
4.6 / 5
58 reviews
Last updated
9 months ago
Feb 1, 2026
Version
2.4.2
11 releases

Upkeep and compatibility

Last updatedFebruary 1, 2026Updated in the last year
Tested up toWordPress 6.9.11Older than WordPress 7.1.4, the current release
Needs WordPress4.6 or newer
Needs PHP5.6 or newer
First publishedFebruary 20, 2014
Support, last two months0 of 1 threads resolved (0%)

Reviews

4.6 / 5 from 58 reviews

Reviews by star rating
5 stars48
4 stars1
3 stars4
2 stars3
1 star2

Downloads, last 30 days

Low 257 a dayHigh 783 a day

What the author says it does

An essential WordPress plugin to easily insert scripts and styles (like Google Analytics, CSS, etc.) into your website’s header and footer.

Looking for a way to add Google Analytics, Facebook Pixel, or custom tracking code to your website’s header or footer?

Header and Footer Scripts is a simple yet powerful plugin that lets you inject code—such as Google Analytics, custom CSS, Facebook Pixel, and chat widgets—directly into your site’s header (<head>) or footer.

No bloat, no ads. This lightweight plugin simply does what it says: inserts code into your header and footer efficiently.

All you have to do is add the appropriate HTML code.

Don’t forget to wrap your code with proper tags.

<script type="text/javascript"> YOUR JS CODE HERE </script>

Or for CSS:

<style type="text/css"> YOUR CSS CODE HERE </style>

Why use this plugin:

  • Insert scripts globally into the header and footer of your entire website.
  • Supports all script types including HTML, JavaScript, and CSS.
  • Add specific scripts to the header of individual posts or pages.
  • To insert code to Custom Post Type [New Feature].

The plugin should be compatible with WooCommerce.

What it does not offer

  • You can’t insert/execute PHP codes.

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

Q. How could I access support and troubleshoot problem?

A. I couldn’t handle wp.org forums on regular basis. You are suggested to visit GitHub Wiki for more updated plugin documentation and troubleshoot your problem.

Q: Is there any paid version of the plugin available?

A. Nope, There is none. If you need more feature send us feedback or feature request.

Latest changelog entry

2.4.2

  • Fix: Resolved critical issue where scripts added to per-post meta box were not saving.
  • Fix: Corrected CodeMirror editor rendering (borders, height) and gutter visibility (line numbers) in meta box.
  • Improvement: Updated English copy throughout the plugin for better clarity and professionalism.
  • New: Added Hindi (hi_IN) translation.
  • New: Included language template (.pot) and translation files.

Screenshots

From WordPress.org.

Tagged

Plugins that share its tags

#105 by installs

Header Footer Code Manager

by DraftPress Team

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for analytics, marketing, or chat features.

Installs
600,000+
Rating
4.9 (309)
Updated
4 months ago

#204 by installs

Insert Headers And Footers

by Adnan

Include inline javascript, stylesheets, CSS code or anything you want in Header and Footer areas of your WordPress with ease.

Installs
200,000+
Rating
5.0 (135)
Updated
12 days ago

#211 by installs

Head, Footer and Post Injections

by Stefano Lissa

Head and Footer plugin lets you to add HTML code to the head and footer sections of your site pages, inside posts... and more!

Installs
200,000+
Rating
4.9 (735)
Updated
7 months ago

#302 by installs

Head & Footer Code

by Aleksandar Urošević

Easy add site-wide, category and article specific custom code before the closing </head> and </body>, or after opening <body> tag.

Installs
100,000+
Rating
5.0 (51)
Updated
2 months ago

#219 by installs

Post Duplicator

by metaphorcreations

Creates functionality to duplicate any and all post types, including taxonomies & custom fields. Perfect for developers and content creators.

Installs
200,000+
Rating
4.8 (80)
Updated
2 days ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin. The author takes donations at their donate page.