Title: Add Custom Codes &#8211; Insert Header, Footer, Custom PHP Snippets, CSS, Javascript
Author: SaifuMak
Published: <strong>2017 年 3 月 11 日</strong>
Last modified: 2026 年 5 月 22 日

---

搜尋外掛

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

![](https://ps.w.org/add-custom-codes/assets/icon.svg?rev=3283753)

# Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript

 由 [SaifuMak](https://profiles.wordpress.org/saifumak/) 開發

[下載](https://downloads.wordpress.org/plugin/add-custom-codes.5.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/add-custom-codes/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/add-custom-codes/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/add-custom-codes/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/add-custom-codes/#developers)

 [技術支援](https://wordpress.org/support/plugin/add-custom-codes/)

## 外掛說明

Add custom codes to your wordpress website. You can add custom PHP Functions, HTML,
custom CSS, Javascript, Google Analytics, Search Console verification tags or other
code snippets to your site.

**Features**

 * 100% free wordpress plugin, no paid upgrades needed!
 * Add PHP Snippets, Custom CSS, Javascript, Google Analytics, Facebook Scripts,
   Meta Verification Codes, Search console verification and other codes to your 
   wordpress website easily.
 * Generate Shortcodes for HTML Snippets and use it anywhere on the site!
 * Syntax highlighter enabled with Light and Dark Mode Editors
 * Classify snippets using tags
 * Add Notes to Snippets
 * Activate/Inactivate snippets with a single click
 * Auto-deactivate feature for PHP snippets that causes errors.
 * Add Custome Codes globally or on individual posts, pages, products and even on
   custom post types.
 * Option to select where to put snippets: before _</head>_ or before _</body>_ 
   etc.
 * Import/Export Snippets to use on other sites.

## 螢幕擷圖

[⌊Global Custom CSS, Header Codes, Footer Codes⌉⌊Global Custom CSS, Header Codes,
Footer Codes⌉[

Global Custom CSS, Header Codes, Footer Codes

[⌊PHP functions⌉⌊PHP functions⌉[

PHP functions

[⌊HTML Snippets with auto-generated Shortcode⌉⌊HTML Snippets with auto-generated
Shortcode⌉[

HTML Snippets with auto-generated Shortcode

[⌊Javascript snippets⌉⌊Javascript snippets⌉[

Javascript snippets

[⌊CSS Snippets⌉⌊CSS Snippets⌉[

CSS Snippets

[⌊Dark Mode Editor⌉⌊Dark Mode Editor⌉[

Dark Mode Editor

[⌊Snippets listing page⌉⌊Snippets listing page⌉[

Snippets listing page

[⌊Snippet auto-deactivation feature⌉⌊Snippet auto-deactivation feature⌉[

Snippet auto-deactivation feature

[⌊Header and Footer codes for Pages, Posts, Taxonomies etc.⌉⌊Header and Footer codes
for Pages, Posts, Taxonomies etc.⌉[

Header and Footer codes for Pages, Posts, Taxonomies etc.

## 安裝方式

 1. Install the plugin through `Plugins -> Add New` or Upload the plugin files to the`/
    wp-content/plugins/add-custom-codes` directory
 2. Activate ‘Add Custom Codes’ plugin through the ‘Plugins’ page in WordPress
 3. Go to ‘Dashboard -> Add Custom Codes’ to start using

## 常見問題集

### Plugin is not working for me. Why?

Make sure that your theme has ‘wp_head()’ call in header.php file and ‘wp_footer()’
call in footer.php file. Also make sure that you have added the right codes in plugin
settings. Also Make sure to clear cache after updating codes in plugin settings.

### Is this plugin safe from hackers?

The plugin is tested well and is safe to use on your website.

### Does the plugin take too long to load?

This is a light-weight plugin which do not affect website performance. But if you
feel so, please check if you are loading scripts on header section. It is always
better to load most scripts in footer section of a website so that the page content
can load easily.

### Do you provide plugin support?

Yes, I am happy to provide support for free of cost.

### Plugin layout looks broken after update. How do I fix?

Please clear your wordpress cache if you are using a caching plugin or service. 
Also try clearing browser cache.

## 使用者評論

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

### 󠀁[Very good](https://wordpress.org/support/topic/very-good-7718/)󠁿

 [vmadien](https://profiles.wordpress.org/vmadien/) 2026 年 1 月 7 日

Works perfectly. The syntax highlighter is sometimes incorrect, but it doesn’t affect
functionality. Thanks to the developers.

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

### 󠀁[Easy to use](https://wordpress.org/support/topic/easy-to-use-4972/)󠁿

 [Ehsan Fotoohabadi](https://profiles.wordpress.org/ehsanfotoo/) 2024 年 4 月 8 
日

Very good and easy to use

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

### 󠀁[Great](https://wordpress.org/support/topic/great-14827/)󠁿

 [anilnarayanan](https://profiles.wordpress.org/anilnarayanan/) 2022 年 9 月 1 日

This is the plugin I’m waiting for a long time while,and I’m very happy with this
plugin

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

### 󠀁[Perfect!!](https://wordpress.org/support/topic/perfect-but-it-has-a-bug/)󠁿

 [sergiohentz](https://profiles.wordpress.org/sergiohentz/) 2022 年 6 月 8 日 2 
則留言

NEW COMMENT: YESSSSSSSSS! Thank you a lot!! 😀 Old comment already fixed! OLD COMMENT:
The plugin has a bug. When active, wp-admin’s “select all” function no longer works
on pages, posts, images, etc

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

### 󠀁[Does what it sounds like](https://wordpress.org/support/topic/does-what-it-sounds-like/)󠁿

 [donygarvasis](https://profiles.wordpress.org/donygarvasis/) 2022 年 1 月 31 日

If you are looking for a simple solution to add code snippets, this plugin could
be one of your best choices. It doesn’t require any configuration.

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

### 󠀁[Works fast](https://wordpress.org/support/topic/works-fast-2/)󠁿

 [SaifuMak](https://profiles.wordpress.org/saifumak/) 2017 年 3 月 17 日

Plugin works faster. Contact support if any problem happens.

 [ 閱讀全部 6 則使用者評論 ](https://wordpress.org/support/plugin/add-custom-codes/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Add Custom Codes – Insert Header, Footer, Custom PHP Snippets,
CSS, Javascript〉的開發相關工作。

參與者

 *   [ SaifuMak ](https://profiles.wordpress.org/saifumak/)

[將〈Add Custom Codes – Insert Header, Footer, Custom PHP Snippets, CSS, Javascript〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/add-custom-codes)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/add-custom-codes/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/add-custom-codes/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/add-custom-codes/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/add-custom-codes/)。

## 變更記錄

#### 1.0

 * Initial Release

#### 2.0

 * Tested to work on latest WordPress version

#### 3.0

 * Tested to work on latest WordPress version
 * Replaced text editor.

#### 4.0

 * Tested to work on latest WordPress version
 * Bug fixes and improvements.
 * Added support for individual posts, pages, woocommerce products and even custom
   post types.
 * Option to put CSS in header or footer of website.

#### 4.1

 * Tweaks and improvements for the Version 4.0 released earlier.

#### 4.2

 * Fixed a reported bug: users were not able to select all pages or posts on WordPress
   admin screen.

#### 4.3

 * Bugfixes and improvements
 * Tested to work with WordPress 6.0

#### 4.4

 * Bugfixes and improvements

#### 4.5

 * Tested to work with latest WordPress

#### 4.6

 * Tested to work with latest WordPress

#### 4.7

 * Bugfixes and improvements
 * Tested to work with latest WordPress
 * Option to Add custom codes to taxonomy pages

#### 4.71

 * Fixed a bug with css inputs

#### 4.8

 * Major update with a fantastic feature: Snippets
 * Add PHP Functions, HTML, CSS, Javascript as snippets
 * Tags and Notes for Snippets
 * Light Mode or Dark Mode editor
 * Import/Export Snippets

#### 5.0

 * Major update with security and vulnerability issues fixed
 * Added guide text to snippets for beginners to easily understand the plugin.

## 中繼資料

 *  版本 **5.0**
 *  最後更新 **2 個月前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 6.6.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.1**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/add-custom-codes/)
 * 標籤:
 * [custom codes](https://tw.wordpress.org/plugins/tags/custom-codes/)[custom css](https://tw.wordpress.org/plugins/tags/custom-css/)
 *  [進階檢視](https://tw.wordpress.org/plugins/add-custom-codes/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  6 個 5 星使用者評論     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/add-custom-codes/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/add-custom-codes/reviews/)

## 參與者

 *   [ SaifuMak ](https://profiles.wordpress.org/saifumak/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/add-custom-codes/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://donate.stripe.com/9AQdRz5xJ87c9i0bIS)