Add HTML, JavaScript and CSS to <head>

by Rob Bakker

Overview


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).

Discuss


Summary
Version:
0.1.2
Last updated:
Active installations:
WordPress Version:
4.6 or higher
Tested up to:
4.9.18
PHP Version:
5.2.4 or higher
Ratings