Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…
About Add Code To Head
This plugin allows template designers and developers to add custom HTML to the bottom of each page's head, such as custom CSS or links to external javascript files. It solves the problem of losing these changes when updating the template directly.Screenshots

Changelog
1.21
- Fixed bug that caused extra space to be added to head contents.
- Code quality and best-practice pass. No database schema changes; existing saved code is unaffected.
1.19
- Fix for CVE ID: CVE‑2025‑48314
- Stored head code is sanitized for users without
unfiltered_html, mitigating the cross-site scripting (XSS) issue for untrusted roles - Note: arbitrary code insertion on public pages remains intentional (and is the point of this plugin).
1.17
- Tested compatibility up to WP 6.7.1
- Added note about Wordfence error that might be encountered
1.15
- Tested compatibility up to WP 5.7.2
- Reformatted script: converted tabs to spaces
1.13
- Tested compatibility up to WP 4.6.1
1.11
- Name changed to (hopefully) reduce confusion.
1.10
- Screenshot updated
- Compatibility with latest WordPress
1.09
- Readme file added
1.07
- Original release