Head & Footer Code
View on WordPress.orgScores higher than 97% of indexed plugins
About
Easy add site-wide, category and article specific custom code before the closing </head> and </body>, or after opening <body> tag.
What It Does
Head & Footer Code lets you paste custom HTML, JavaScript, or CSS into your site's head, opening body tag, or closing body tag, with optional scoping to all pages, specific categories, or individual posts. It covers the typical jobs site owners need from a header/footer injector: analytics scripts, ad pixels, verification meta tags, and custom fonts. It does not offer a snippet library, conditional logic beyond categories and posts, or scheduled code execution.
Who It's For
This plugin suits solo bloggers, small business owners, and marketers who need a focused tool for inserting tracking codes and pixels without the overhead of a full snippet manager. It is a good fit for sites with straightforward, page-level or category-level code needs where you want minimal interface clutter. Agencies running multi-client setups may prefer a more feature-rich alternative.
Who Should Skip It
If you need a full code snippet manager with conditional logic, scheduled execution, or a reusable snippet library, this plugin is too narrow. Developers building complex custom integrations will also want something like WPCode or Code Snippets instead.
The Bottom Line
Head & Footer Code is a lean, well-maintained injector that does the basic job without bloat, earning an overall quality score of 84.89/100. Its perfect user rating is encouraging, but the lack of public support threads means you are betting on an author whose responsiveness is unproven. For simple tracking and pixel needs it is a fine choice, but anyone wanting conditional logic or a snippet library should go with WPCode instead.
Related Plugins
Pick this when you want a full snippet library, conditional logic, and a far larger user base of 3 million installs.
Pick this when you need to run PHP snippets site-wide with safe activation and deactivation, not just header or footer code.
Pick this when you want per-page targeting, priority ordering, and richer device-based rules across 600,000 sites.
Pick this when you want the simplest possible one-field interface and a large, stable user base.
Pick this when you need per-post and per-page code injection with a long track record of 300,000 installs.