Add Code To Head
View on WordPress.orgScores higher than 22% of indexed plugins
About
Add custom JavaScript/HTML/CSS codes to the page head without editing the template.
Security History
What It Does
Add Code To Head is a lightweight utility that injects custom JavaScript, HTML, or CSS snippets into the <head> section of every page on a WordPress site. It provides a simple settings field rather than requiring users to edit header.php or child theme files directly. The scope is intentionally narrow: head injection only, with no body or footer output options.
Who It's For
This plugin suits site owners who need to paste a single tracking pixel, verification meta tag, or custom CSS block into the head and have no interest in learning theme file editing. It works fine for small business sites, landing pages, and low-stakes projects where one snippet is all that is needed. Non-developers who want a fast, set-and-forget solution will find the interface approachable.
Who Should Skip It
Anyone managing more than a handful of snippets, or who needs conditional logic, body and footer injection, or snippet management, should look elsewhere. Developers comfortable editing a child theme header.php do not need this plugin at all.
The Bottom Line
Add Code To Head scores 69.07/100 and delivers exactly what its name promises, no more and no less. For a one-line tracking code or verification tag on a small site, it is adequate, but the lack of support history and tiny install base make it a weaker choice than WPCode or Head & Footer Code for almost any real production scenario. The overall quality score reflects a functional but unproven tool that has not yet earned broad trust.
Related Plugins
Pick WPCode if you want a mature, widely deployed (3 million installs) solution with conditional logic, snippet library, and body and footer injection in addition to head.
Pick Code Snippets if you want to run reusable PHP snippets site-wide with toggle control, rather than only injecting static markup into the head.
Pick Head & Footer Code if you want a similarly simple injector that also supports the body and footer and has a larger user base (100,000 installs).
This is a developer utility for identifying the active template file, not a code injector, so it only overlaps with this category at a tooling level.
Pick Shortcoder if your need is to embed reusable HTML or JS blocks via shortcodes inside posts rather than global head injection.