Add Code To Head
by salubrio 5 (2 reviews)

Add Code To Head

Add custom JavaScript/HTML/CSS codes to the page head without editing the template.

Add Code To Head ranks #4,200 among WordPress.org plugins with 3,000+ active installations, is #603 of 8,295 in the Customization category, a 5/5 rating from 2 reviews, and was last updated Apr 23, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 6.9 (Current: 7.0.2)
v1.23 Current Version v1.23
Updated 3 months ago Last Update on 23 Apr, 2026
Refreshed 8 hours ago Last Refreshed on
#603 of 8,295 in Customization Top 10% by installs Downloads -16.7% this week
View on WordPress.org
Rank
#4,200
+3 this week
Active Installs
3K+
No change
KW Avg Position
52.8
0.8 worse
Downloads
41.3K
+1 today
Support Resolved
0%
No change
Rating
100%
Review 5 out of 5
5 (2 reviews)

Next Milestone 4K

Total Progress 78.4%
3K+ 4K+
524
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 216 more installs to reach 4K+

Rank Changes

3,989 4,096 4,204 4,311 4,418 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026
3,989 4,096 4,204 4,311 4,418 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026
4,180 4,188 4,197 4,205 4,213 29-06-2026 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026
4,165 4,177 4,190 4,202 4,214 30-04-2026 01-05-2026 02-05-2026 03-05-2026 04-05-2026 05-05-2026 06-05-2026 07-05-2026 08-05-2026 09-05-2026 10-05-2026 11-05-2026 12-05-2026 13-05-2026 14-05-2026 15-05-2026 16-05-2026 17-05-2026 18-05-2026 19-05-2026 20-05-2026 21-05-2026 22-05-2026 23-05-2026 24-05-2026 25-05-2026 26-05-2026 27-05-2026 28-05-2026 29-05-2026 30-05-2026 31-05-2026 01-06-2026 02-06-2026 03-06-2026 04-06-2026 05-06-2026 06-06-2026 07-06-2026 08-06-2026 09-06-2026 10-06-2026 11-06-2026 12-06-2026 13-06-2026 14-06-2026 15-06-2026 16-06-2026 17-06-2026 18-06-2026 19-06-2026 20-06-2026 21-06-2026 22-06-2026 23-06-2026 24-06-2026 25-06-2026 26-06-2026 27-06-2026 28-06-2026 29-06-2026 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026
Current #4,200
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 20 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026
0 10 20 30 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026
0 10 20 30 29-06-2026 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026 28-07-2026 29-07-2026
0 10 20 30 40 50 60 30-04-2026 03-05-2026 06-05-2026 09-05-2026 12-05-2026 15-05-2026 18-05-2026 21-05-2026 24-05-2026 27-05-2026 30-05-2026 02-06-2026 05-06-2026 08-06-2026 11-06-2026 14-06-2026 17-06-2026 20-06-2026 23-06-2026 26-06-2026 29-06-2026 02-07-2026 05-07-2026 08-07-2026 11-07-2026 14-07-2026 17-07-2026 20-07-2026 23-07-2026 26-07-2026 29-07-2026
0 200 400 600 800 29-07-2025 10-08-2025 22-08-2025 03-09-2025 15-09-2025 27-09-2025 09-10-2025 21-10-2025 02-11-2025 14-11-2025 26-11-2025 08-12-2025 20-12-2025 01-01-2026 13-01-2026 25-01-2026 06-02-2026 18-02-2026 02-03-2026 14-03-2026 26-03-2026 07-04-2026 19-04-2026 01-05-2026 13-05-2026 25-05-2026 06-06-2026 18-06-2026 30-06-2026 12-07-2026 24-07-2026 29-07-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
2 reviews
Overall 100%
5
2 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Tracked Keywords

Showing 4 of 4
Keyword Position Change Type Updated
code 40 Tag 9 hours ago
javascript 44 Tag 9 hours ago
template 49 Tag 9 hours ago
css 78 Tag 9 hours ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Security History

Source: WPVulnerability

1 known vulnerability on record · 1 in the last 24 months · checked 3 hours ago

  1. Add Code To Head [add-code-to-head] < 1.23

    CVE-2025-48314 · Fixed in v1.23

TL;DR

AI summary of the plugin's readme

This plugin is for template designers, developers, and admins who need to add custom code to a site's page header. It lets users insert JavaScript, HTML, or CSS into the head section—such as site verification codes for services like Mailchimp or Google—without editing the template directly.

  • Add custom JavaScript to head
  • Add custom HTML to head
  • Add custom CSS to head
  • Site ownership verification codes
  • Link external JavaScript files
  • No template editing required
  • Unaffected by template changes

Frequently Asked Questions

Common questions about Add Code To Head

The plugin now normalizes and sanitizes saved head code for users who do not have the unfiltered_html capability before it is stored, closing the stored XSS vector described in CVE-2025-48314 for untrusted roles. Site owners who intentionally grant unfiltered_html (such as administrators on single-site installs) still bypass this sanitization by design so they can insert arbitrary code. Bottom line: the vulnerability of executing arbitrary code in the admin screens should be eliminated, however the functionality exists for public pages and is intentional. Only advanced users who know what they are doing should use this plugin.
Another plugin or the theme is adding their own codes to the head after this plugin runs.
You can, but you shouldn't. It is far too easy to break your site if you don't know what you are doing. Q. Wordfence says something like "A potentially unsafe operation has been detected in your request to this site." If you try to add a script or some other potentially-dangerous code (even if it isn't), Wordfence might complain. Double check your code and if it is okay, mark it as a false positive in Wordfence. Q. Help! I messed up my whole site! Disable the plugin. If your site is still messed up, then there's some other problem.
The problem lies in whatever you typed/pasted into this plugin's option screen. If you're really stuck, then try clearing out the code and starting over. Q. Help! I accidentally erased the code and I didn't mean to do that. Similar to how widgets work, that data is stored in your database. If you made a backup before you deleted the data, then you can restore it that way, otherwise it is gone.
Right now you cannot. If there is sufficient demand, then we'll add it.
Absolutely!

Sign In / Register

You need to sign in or register to use this feature.