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)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://zh-hk.wordpress.org/plugins/custom-code/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/custom-code/#reviews)
 *  [安裝](https://zh-hk.wordpress.org/plugins/custom-code/#installation)
 * [開發](https://zh-hk.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

## 其它

 *  Version **1.1**
 *  Last updated **12 年之前**
 *  Active installations **100+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **3.7.41**
 *  Language
 * [English (US)](https://wordpress.org/plugins/custom-code/)
 * Tags
 * [css](https://zh-hk.wordpress.org/plugins/tags/css/)[custom code](https://zh-hk.wordpress.org/plugins/tags/custom-code/)
   [footer](https://zh-hk.wordpress.org/plugins/tags/footer/)[header](https://zh-hk.wordpress.org/plugins/tags/header/)
   [script](https://zh-hk.wordpress.org/plugins/tags/script/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/custom-code/advanced/)

## 評分

 4 out of 5 stars.

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

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

[See all reviews](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)