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

---

搜索插件

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

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Add HTML, JavaScript and CSS to <head>

 作者：[Rob Bakker](https://profiles.wordpress.org/rvbakker/)

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

 * [详情](https://cn.wordpress.org/plugins/add-html-javascript-and-css-to-head/#description)
 * [评价](https://cn.wordpress.org/plugins/add-html-javascript-and-css-to-head/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/add-html-javascript-and-css-to-head/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/add-html-javascript-and-css-to-head/#developers)

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

## 描述

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

## 屏幕截图

 * [[

## 安装

 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.

## 常见问题

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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Add HTML, JavaScript and CSS to <head>」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

「Add HTML, JavaScript and CSS to <head>」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/add-html-javascript-and-css-to-head/contributors)
为本插件所做的贡献。

[帮助将「Add HTML, JavaScript and CSS to <head>」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/add-html-javascript-and-css-to-head)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/add-html-javascript-and-css-to-head/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/add-html-javascript-and-css-to-head/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/add-html-javascript-and-css-to-head/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/add-html-javascript-and-css-to-head/)。

## 更新日志

#### 0.1.2

Improved settings page layout.

#### 0.1.1

Added settings and support links.

#### 0.1.0

Initial release.

## 额外信息

 *  版本 **0.1.2**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [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/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/add-html-javascript-and-css-to-head/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/add-html-javascript-and-css-to-head)
 * 标签
 * [custom head](https://cn.wordpress.org/plugins/tags/custom-head/)[custom html](https://cn.wordpress.org/plugins/tags/custom-html/)
   [head](https://cn.wordpress.org/plugins/tags/head/)
 *  [高级视图](https://cn.wordpress.org/plugins/add-html-javascript-and-css-to-head/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/add-html-javascript-and-css-to-head/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/add-html-javascript-and-css-to-head/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/rvbakker)