Title: Average Head &amp; Footer Code
Author: average.technology
Published: <strong>2014 年 8 月 8 日</strong>
Last modified: 2014 年 12 月 4 日

---

搜索插件

![](https://ps.w.org/average-head-footer-code/assets/banner-772x250.jpg?rev=962685)

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

![](https://s.w.org/plugins/geopattern-icon/average-head-footer-code_f8f8f8.svg)

# Average Head & Footer Code

 作者：[average.technology](https://profiles.wordpress.org/averagetechnology/)

[下载](https://downloads.wordpress.org/plugin/average-head-footer-code.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/average-head-footer-code/#description)
 * [评价](https://cn.wordpress.org/plugins/average-head-footer-code/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/average-head-footer-code/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/average-head-footer-code/#developers)

 [支持](https://wordpress.org/support/plugin/average-head-footer-code/)

## 描述

> **Notice**
>  Average is changing its name to AddFunc. Much better, huh?! Therefore,
> this plugin has been republished as [AddFunc Head & Footer Code](https://wordpress.org/plugins/addfunc-head-footer-code/).
> The “AddFunc version” is compatible with the “Average version,” so installation
> and activation of either or both is risk-free. This also enables you to manually
> transfer all of your head and footer code to the “AddFunc version” (if you wish).
> The “Average version” will remain available with minimal support until it becomes
> a burden for AddFunc (probably for many years to come, as of 2014). Any new features
> will only be added to the “AddFunc version,” so it is of course the recommended
> version (at least for future projects). Thanks!

Allows admins to add code to the `<head>` and/or footer of an individual post and/
or site-wide. Ideal for scripts such as Google Analytics conversion tracking code
and any other general or page-specific JavaScript.

**Custom support tickets are available**

See [Other Notes](https://wordpress.org/plugins/average-head-footer-code/other_notes/)
tab for details.

### Custom Support

If you have a custom support need, [please purchase your support ticket here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7AF7P3TFKQ2C2).
Support tickets are responded to within 24 hours, but we answer them as soon as 
possible.

**How it works**

 1. [Purchase a support ticket via PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7AF7P3TFKQ2C2)
 2. You get a chance to provide the best way to contact you and a description of your
    need
 3. I contact you as soon as I can (no less than 24 hours) and help resolve your issue

**Note:** This is for custom needs for help, not problems with the plugin, or instructions
that should already be explain in the description. If you feel there are important
details omitted from the description, installation steps, etc. of the plugin, please
report them in the Support forum. Thanks!

## 屏幕截图

 * [[
 * Simply paste your code into one of these two fields and it will be included on
   every page of your website.
 * [[
 * Add your code to these fields respectively and it will output specifically to
   this page, post or custom post type.

## 安装

 1. Upload the entire `/average-head-footer-code` folder to the `/wp-content/plugins/`
    directory
 2. Activate the plugin through the _Plugins_ menu in WordPress
 3. Add code site-wide in _Settings>Head & Footer Code_ or on individual pages/posts
    using the Head & Footer Code meta box when in edit mode in a page (or any post 
    type)

## 常见问题

  Where does the head code output?

Wherever `wp_head()` is located in your theme.

  Where does the footer code output?

Wherever `wp_footer()` is located in your theme.

  Does it really require WordPress 3.0.1 or later?

I have not tested it on earlier versions. In fact, I could use help with testing.
Feel free to try it out in an earlier version and let me know if it works! 🙂

  Does Average have a website?

The cobbler has no shoes… yet.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Average Head & Footer Code」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ average.technology ](https://profiles.wordpress.org/averagetechnology/)
 *   [ Joe Rhoney ](https://profiles.wordpress.org/joerhoney/)

[帮助将「Average Head & Footer Code」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/average-head-footer-code)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

1-Dec-2014

 * Announces move to [AddFunc Head & Footer Code](https://wordpress.org/plugins/addfunc-head-footer-code/)
 * Fixes metabox nonce
 * Removes icon.svg

#### 1.0

7-Aug-2014

 * Includes readme.txt
 * Submitted to WordPress

#### 0.4.1

6-Aug-2014

 * Code cleaned up (mostly comments removed)
 * Excludes unnecessary file: style.css

#### 0.4

8-Jul-2014

 * Bug fix: replaced “my-meta-box-id” with “avrghdftrcdMetaBox” (duh)

#### 0.3

27-Oct-2013

 * Hid Head & Footer Code meta box from non-admin users

#### 0.2

15-Oct-2013

 * Adds a Head & Footer Code settings page for site-wide code (for admins only)

#### 0.1

14-Aug-2013

 * Adds Head & Footer Code meta box to all pages, posts and cusom post types
 * Saves Head & Footer Code entry to the database as custom fields
 * Outputs code to the website in `wp_head()` and `wp_footer()`

## 额外信息

 *  版本 **1.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/average-head-footer-code/)
 * 标签
 * [footer](https://cn.wordpress.org/plugins/tags/footer/)[footer code](https://cn.wordpress.org/plugins/tags/footer-code/)
   [head](https://cn.wordpress.org/plugins/tags/head/)[head code](https://cn.wordpress.org/plugins/tags/head-code/)
 *  [高级视图](https://cn.wordpress.org/plugins/average-head-footer-code/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/average-head-footer-code/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/average-head-footer-code/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/average-head-footer-code/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/average-head-footer-code/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/average-head-footer-code/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/average-head-footer-code/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/average-head-footer-code/reviews/)

## 贡献者

 *   [ average.technology ](https://profiles.wordpress.org/averagetechnology/)
 *   [ Joe Rhoney ](https://profiles.wordpress.org/joerhoney/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/average-head-footer-code/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7AF7P3TFKQ2C2)