Title: Custom Code
Author: Bhagirath Dhanani
Published: <strong>2014 年 2 月 22 日</strong>
Last modified: 2014 年 3 月 2 日

---

搜索插件

![](https://ps.w.org/custom-code/assets/banner-772x250.jpg?rev=863034)

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

![](https://s.w.org/plugins/geopattern-icon/custom-code_dce7f7.svg)

# Custom Code

 作者：[Bhagirath Dhanani](https://profiles.wordpress.org/bhagirath25/)

[下载](https://downloads.wordpress.org/plugin/custom-code.zip)

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

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

## 描述

Add Custom script and CSS code to header, footer,before post,after post.

1. You can add custom code at header, but before

2. You can add custom code at footer, but before

3. You can add custom code before post content, this will display on single page
only

4. You can add custom code after post content, this will display on single page 
only

 You can use plain html, JavaScript and CSS code, but for JavaScript and CSS don’t
forget to add and tag

## 屏幕截图

 * [[
 * Add Edit Custom Code.
 * [[
 * Manage Custom Code.
 * [[
 * How Code look in source code.

## 安装

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

**In which place I can add custom code?**

1. You can add custom code at header, but before

2. You can add custom code at footer, but before

3. You can add custom code before post content, this will display on single page
only

4. You can add custom code after post content, this will display on single page 
only

**which type of code I can use for custom code?**

 You can use plain html, JavaScript and CSS code, but for JavaScript and CSS don’t
forget to add and tag

## 评价

![](https://secure.gravatar.com/avatar/388045b4264c7dd4708a508d62516adc7715e71668a2a03d2d2dd99387990e52?
s=60&d=retro&r=g)

### 󠀁[Just what I needed](https://wordpress.org/support/topic/just-what-i-needed-571/)󠁿

 [jacklanders](https://profiles.wordpress.org/jacklanders/) 2017 年 2 月 8 日

Thanks for this plugin! It is very easy to use and intuitive.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/custom-code/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Bhagirath Dhanani ](https://profiles.wordpress.org/bhagirath25/)

[帮助将「Custom Code」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-code)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

 * Fixed issue in before content and after content

#### 1.0

 * Add Custom script and CSS code to header, footer

## 额外信息

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

## 评级

 4 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Bhagirath Dhanani ](https://profiles.wordpress.org/bhagirath25/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://click2check.net)