WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by mahethekiller v2.1.1

Header Footer Script Adder

Easily insert custom HTML, CSS, and JavaScript into your WordPress site's header, body, and footer without modifying theme files.

Header Footer Script Adder

The facts

Rating
4.1★ from 7
Active installs
1k+
Price
Free
Last updated
17 Jul 2026
Added
Feb 2017
Requires WP
6.0
Tested up to
WP 7.0.4
Requires PHP
7.4
Downloads
18,801

Our analysis

AI-assisted

Header Footer Script Adder is a WordPress plugin that allows you to insert custom HTML, CSS, and JavaScript into your site's header, body, or footer without editing theme files. It offers features such as conditional loading and per-page overrides, making it suitable for various tracking and customisation needs.

This plugin is ideal for users who want to add scripts like Google Analytics, Facebook Pixel, or custom CSS without the risk of losing their code after updates. It is designed to be user-friendly and developer-friendly, catering to both novice users and experienced developers.

Best for: This plugin suits website owners and developers needing to add scripts and custom code safely and efficiently.

What it does well

  • Allows insertion of HTML, CSS, and JavaScript into header, body, or footer
  • Supports conditional loading and per-page overrides
  • Includes a code editor with syntax highlighting
  • Sanitises input to prevent malicious injections
  • Compatible with both Block Editor and Classic Editor

Where it falls short

  • Limited information on specific use cases or user experiences

Verdict

Header Footer Script Adder provides a straightforward solution for managing scripts on WordPress sites. It is a practical choice for those looking to enhance their site's functionality without complex coding.

From the developer

mahethekiller's own description of Header Footer Script Adder, lightly tidied.

Header Footer Script Adder is a powerful and user-friendly WordPress plugin that lets you easily insert custom HTML, CSS, and JavaScript into your site’s header, body, or footer.

You don’t need to edit theme files or worry about losing your code after updates. This plugin keeps your scripts safe, reusable, and flexible with conditional loading and per-page overrides.

✨ Features

  • Add scripts to Header (<head>), Body (after <body>), or Footer (before </body>)
  • Conditional Loading – load scripts sitewide, homepage only, posts/pages, or archives
  • Per-Page Overrides – add unique code for specific posts and pages
  • Code Editor with Syntax Highlighting (CodeMirror)
  • Safe Input Handling – sanitization without breaking valid HTML, CSS, or JS
  • Lightweight and Fast – minimal database queries
  • Block Editor & Classic Editor Compatible
  • Multisite Ready & Translation Ready

✅ Perfect For

  • Google Analytics / GA4 tracking code
  • Google Tag Manager
  • Facebook Pixel and ad tracking
  • Chat widgets (WhatsApp, Crisp, Tawk.to, etc.)
  • Custom CSS and JavaScript
  • SEO and verification meta tags (Google, Bing, Pinterest)
  • A/B testing scripts
  • External fonts and resources

⚙️ Conditional Loading Options

  • Sitewide (all pages)
  • Homepage only
  • Posts & Pages only
  • Archive pages

🔒 Security & Performance

  • Sanitized input to prevent malicious injections
  • Nonce verification for safe form submissions
  • Admin-only access for configuration
  • Clean uninstall process (no leftover data)
  • Minimal performance impact

👨‍💻 Developer Friendly

  • Extensible, documented code
  • WordPress coding standards compliant
  • Translation-ready .pot file included
  • Works with any theme

Donations

If you enjoy this plugin and want to support development, you can buy me a coffee:
👉 https://www.buymeacoffee.com/mahethekiller

Support & Documentation

For support, feature requests, or documentation, please visit the support forum on WordPress.org.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for measuring traffic.

Under Construction

Easy to use Under Construction Page &amp; Coming Soon Page. Enable Under Construction Mode in seconds &amp; sh...

Free 600k+ installs 4.8★ (1,285)
Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
MonsterInsights

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can gro...

Free 2M+ installs 4.5★ (3,148)
Maintenance

Great looking maintenance, coming soon &amp; under construction pages. Put your site under maintenance in minu...

Free 1M+ installs 4.4★ (860)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
GA Google Analytics

Adds Google Analytics tracking code to your WordPress site. Supports many tracking features.

Free 400k+ installs 4.9★ (158)