Title: Add HTML, JavaScript and CSS to &lt;head&gt;
Author: Rob Bakker
Published: <strong>June 29, 2018</strong>
Last modified: June 30, 2018

---

Search plugins

![](https://ps.w.org/add-html-javascript-and-css-to-head/assets/banner-772x250.png?
rev=1901404)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/add-html-javascript-and-css-to-head/assets/icon.svg?rev=1901410)

# Add HTML, JavaScript and CSS to <head>

 By [Rob Bakker](https://profiles.wordpress.org/rvbakker/)

[Download](https://downloads.wordpress.org/plugin/add-html-javascript-and-css-to-head.zip)

 * [Details](https://srd.wordpress.org/plugins/add-html-javascript-and-css-to-head/#description)
 * [Reviews](https://srd.wordpress.org/plugins/add-html-javascript-and-css-to-head/#reviews)
 *  [Installation](https://srd.wordpress.org/plugins/add-html-javascript-and-css-to-head/#installation)
 * [Development](https://srd.wordpress.org/plugins/add-html-javascript-and-css-to-head/#developers)

 [Support](https://wordpress.org/support/plugin/add-html-javascript-and-css-to-head/)

## Description

An easy, small, free and fast plugin to add/inject HTML, CSS or JavaScript code 
to the <head> HTML part of your site.

Some examples of possible use cases for this plugin are:

 * Injecting custom CSS into the <head>.
 * Inserting a <meta> tag into the <head> for Google Search Console validation.
 * Adding Google Analytics JavaScript into <head>.
 * Insert the <base> tag into <head&gt, to set a default URL and a default target
   for all links.
 * Adding device-optimized favicons by using the <link> tag
 * Injecting content with the <template> tag into <head>, in order to initially 
   content from the user (and display it later using JavaScript).

## Screenshots

 * [[

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/add-html-to-head` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Settings->Plugin Name screen to configure the plugin

Or just click install and activate in the WordPress plugin browser.

## FAQ

  Installation Instructions

 1. Upload the plugin files to the `/wp-content/plugins/add-html-to-head` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Settings->Plugin Name screen to configure the plugin

Or just click install and activate in the WordPress plugin browser.

  Will the plugin always be free?

Yes. If you find this plugin useful however, you may [donate](https://www.paypal.me/rvbakker)
any amount you would like to donate. Or nothing at all, that’s fine too. 🙂

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Add HTML, JavaScript and CSS to <head>” is open source software. The following 
people have contributed to this plugin.

Contributors

 *   [ Rob Bakker ](https://profiles.wordpress.org/rvbakker/)

“Add HTML, JavaScript and CSS to <head>” has been translated into 2 locales. Thank
you to [the translators](https://translate.wordpress.org/projects/wp-plugins/add-html-javascript-and-css-to-head/contributors)
for their contributions.

[Translate “Add HTML, JavaScript and CSS to <head>” into your language.](https://translate.wordpress.org/projects/wp-plugins/add-html-javascript-and-css-to-head)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/add-html-javascript-and-css-to-head/),
check out the [SVN repository](https://plugins.svn.wordpress.org/add-html-javascript-and-css-to-head/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/add-html-javascript-and-css-to-head/)
by [RSS](https://plugins.trac.wordpress.org/log/add-html-javascript-and-css-to-head/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1.2

Improved settings page layout.

#### 0.1.1

Added settings and support links.

#### 0.1.0

Initial release.

## Meta

 *  Version **0.1.2**
 *  Last updated **8 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **4.9.29**
 *  PHP version ** 5.2.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/add-html-javascript-and-css-to-head/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/add-html-javascript-and-css-to-head/),
   and [Spanish (Spain)](https://es.wordpress.org/plugins/add-html-javascript-and-css-to-head/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/add-html-javascript-and-css-to-head)
 * Tags
 * [custom head](https://srd.wordpress.org/plugins/tags/custom-head/)[custom html](https://srd.wordpress.org/plugins/tags/custom-html/)
   [head](https://srd.wordpress.org/plugins/tags/head/)
 *  [Advanced View](https://srd.wordpress.org/plugins/add-html-javascript-and-css-to-head/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/add-html-javascript-and-css-to-head/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/add-html-javascript-and-css-to-head/reviews/)

## Contributors

 *   [ Rob Bakker ](https://profiles.wordpress.org/rvbakker/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/add-html-javascript-and-css-to-head/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/rvbakker)