This plugin allows you to insert code into the template head without having to edit the template files directly.
Author: | HBJitney, LLC (profile at wordpress.org) |
WordPress version required: | 3.3.2 |
WordPress version tested: | 5.7.2 |
Plugin version: | 1.15 |
Added to WordPress repository: | 23-09-2012 |
Last updated: | 12-06-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 2 |
Plugin URI: | http://hbjitney.com/add-code-to-header.html |
Total downloads: | 35 368 |
Active installs: | 3 000+ |
Click to start download
|
Intended users: Template Designers, Developer
If you wish to add any custom HTML to the bottom of each page’s head, then this plugin is for you. For example, you can add some custom CSS, a link to an external javascript file or something else.
The problem with editing the template directly is if you ever update the template, your changes will be lost. This plugin works around this issue.
Acknowledgements
Plugin Icon (CC BY 3.0) by DeniShop
Screenshots
Options screen
FAQ
Q. Why aren’t my codes being added to the absolute end of the head?
Another plugin or the theme is adding their own codes to the head after this plugin runs.
Q. I don’t know HTML/Javascript/CSS; can I still use this plugin?
Yes, but you may easily get confused and mess up your whole site. It is better to learn the code first before you use this plugin.
Q. Help! I messed up my whole site!
Disable the plugin. If your site is still messed up, then there’s some other problem.
Q. I disabled your plugin and the problem went away. Now what?
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.
Q. How do I apply code to only a certain page or pages?
Right now you cannot. If there is sufficient demand, then we’ll add it.
Q. Can I ask for additional functionality?
Absolutely!
ChangeLog
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
1.07