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://tw.wordpress.org/plugins/custom-code/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/custom-code/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/custom-code/#installation)
 * [開發資訊](https://tw.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.⌉⌊Add Edit Custom Code.⌉[

Add Edit Custom Code.

[⌊Manage Custom Code.⌉⌊Manage Custom Code.⌉[

Manage Custom Code.

[⌊How Code look in source code.⌉⌊How Code look in source 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 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.7.41**
 *  語言
 * [English (US)](https://wordpress.org/plugins/custom-code/)
 * 標籤:
 * [css](https://tw.wordpress.org/plugins/tags/css/)[custom code](https://tw.wordpress.org/plugins/tags/custom-code/)
   [footer](https://tw.wordpress.org/plugins/tags/footer/)[header](https://tw.wordpress.org/plugins/tags/header/)
   [script](https://tw.wordpress.org/plugins/tags/script/)
 *  [進階檢視](https://tw.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)