Add Code To Head
Add custom JavaScript/HTML/CSS codes to the page head without editing the template.
The facts
- Rating
- 5★ from 2
- Active installs
- 3k+
- Price
- Free
- Last updated
- 23 Apr 2026
- Added
- Sep 2012
- Requires WP
- 6.1
- Tested up to
- WP 6.9.7
- Requires PHP
- 8.0
- Downloads
- 44,620
Our analysis
AI-assistedAdd Code To Head is a WordPress plugin designed for template designers, developers, and site administrators. It allows you to insert custom HTML, CSS, or JavaScript into the header of each page without modifying your site's template directly. This is particularly useful for adding verification codes for services like Mailchimp or Google.
The plugin is suitable for users who need to make small changes to their site's header without creating a child template. It ensures that your modifications remain intact even when the template is updated, as it operates independently of the template structure.
Best for: This plugin is best for template designers and developers needing to add custom code to headers without template modifications.
What it does well
- ✓Allows adding custom HTML to page headers
- ✓Useful for website verification with services
- ✓No need to edit the site's template directly
- ✓Changes remain after template updates
- ✓Free to use from the WordPress.org directory
Where it falls short
- •Limited information on additional features
- •May not suit users needing extensive template changes
Verdict
Add Code To Head provides a straightforward solution for inserting code into page headers, making it a practical tool for specific user needs.
From the developer
salubrio's own description of Add Code To Head, lightly tidied.
Intended users: Template Designers, Developer, Admins
If you wish to add any custom HTML to each page’s header, then this plugin is for you.
This is useful for verifying you are the owner of the website to services such as Mailchimp or Google. You can quickly add the verification codes to your page header without having to edit your site’s template.
In general, you can add custom CSS, a link to an external JavaScript file or something else. While it is generally recommended to create a child template if you’re going to make extensive, permanent changes to a template, there may be instances where a small change or two is needed that wouldn’t justify the creation of a child template—or your current template might not support child templates. You should nearly always avoid editing a template directly, because your changes will be lost when you next update the template.
This plugin is not affected by template changes.
Acknowledgements
Plugin Icon (CC BY 3.0) by DeniShop