Title: CSS JS Files
Author: jamesdlow
Published: <strong>2016 年 12 月 15 日</strong>
Last modified: 2026 年 1 月 26 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/css-js-files.svg)

# CSS JS Files

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

[下載](https://downloads.wordpress.org/plugin/css-js-files.zip)

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

 [技術支援](https://wordpress.org/support/plugin/css-js-files/)

## 外掛說明

A simple WordPress plugin that allows users to select files CSS and/or write CSS
rules to any single page or post or globally

## 安裝方式

This section describes how to install the plugin and get it working.

 1. Upload entire `css-js-files` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. That’s it, you’ll see a `Select CSS/JS files and/or write your custom CSS/JS rules`
    metabox on all add or edit posts/pages.

## 使用者評論

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

### 󠀁[Works as expected!](https://wordpress.org/support/topic/works-as-expected-297/)󠁿

 [Jeffrey Maher](https://profiles.wordpress.org/iws_ottawa/) 2017 年 3 月 30 日

Easily gives you a box at the bottom of each page to add in your own CSS and JS.
sweet! Thanks!!!

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

### 󠀁[BRAVO !!!](https://wordpress.org/support/topic/bravo-62/)󠁿

 [nick6352683](https://profiles.wordpress.org/nick6352683/) 2016 年 12 月 19 日

If I could give it 20 stars, I would! My themes now can be configured and look completely
different, in real time, per post/page basis, decided by the user, and not me, the
theme author. Just brilliant !!! I was using 2 other pieces of code to do the same,
but each had it’s limitations.

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/css-js-files/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈CSS JS Files〉的開發相關工作。

參與者

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

[將〈CSS JS Files〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/css-js-files)

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

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

## 變更記錄

#### 1.5.6

 * Only use syntax highlighting on global page until it works with gutenburg editor

#### 1.5.5

 * Set tab sizes to 4

#### 1.5.4

 * Add syntax highlighting for CSS/JS

#### 1.5.3

 * Add version when insert css files so they can be updated for CDNs and other caching
   models

#### 1.5.2

 * Additional security fixes and improvements to editor

#### 1.5.1

 * Additional fix to vulnerability in editor
 * Remove PHP 8.X warning

#### 1.5.0

 * Fix vulnerability in editor
 * Bug fixes and improvements

#### 1.4.9

 * Fix count() error on PHP 8+ when post/page has no meta

#### 1.4.8

 * Remove code that deletes meta on move to trash as this was not working anyway
   and we may want to restore if restored from trash

#### 1.4.7

 * Prevent output of blank CSS/JS links

#### 1.4.6

 * Restore original sanetization for fields

#### 1.4.5

 * Fix saving of head/body/footer fields

#### 1.4.4

 * Compatibility and sanetizing

#### 1.4.3

 * Add admin css/js

#### 1.4.2

 * Ability to add custom html in the head/body/footer hooks

#### 1.4.1

 * Fix JavaScript for latest WordPress JQuery version

#### 1.4.0

 * Allow remote JavaScript and CSS files and fonts

#### 1.3.5

 * Sort filenames in drop down

#### 1.3.4

 * Fix not echoing global rules introduced in 1.3.3

#### 1.3.3

 * Fix “PHP message: PHP Warning: count(): Parameter must be an array or an object
   that implements Countable”

#### 1.3.2

 * Fix “Parameter must be an array or an object that implements” warnings

#### 1.3.1

 * Fix for assumed constant warning

#### 1.3.0

 * Bug fix for showing global CSS/JS on other pages like home/search etc.
 * Show post specific CSS/JS on front page if it is a static page
 * Show post specific CSS/JS on posts page

#### 1.2.0

 * Bug fix to make global js files actually include
 * Put global JS files first so that post specific comes after

#### 1.1.1

 * Bug fix for initial global CSS/JS text option

#### 1.1.0

 * Global CSS/JS files and rules
 * Change CSS/JS search path
 * Editor for CSS/JS files

#### 1.0.0

 * Initital version

## 中繼資料

 *  版本 **1.5.6**
 *  最後更新 **7 個月前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 4.9.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.5.10**
 *  語言
 * [English (US)](https://wordpress.org/plugins/css-js-files/)
 * 標籤:
 * [css](https://tw.wordpress.org/plugins/tags/css/)[custom css](https://tw.wordpress.org/plugins/tags/custom-css/)
   [file css](https://tw.wordpress.org/plugins/tags/file-css/)[page](https://tw.wordpress.org/plugins/tags/page/)
   [post](https://tw.wordpress.org/plugins/tags/post/)
 *  [進階檢視](https://tw.wordpress.org/plugins/css-js-files/advanced/)

## 評分

 5 星，滿分為 5 星

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

[撰寫評分](https://wordpress.org/support/plugin/css-js-files/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/css-js-files/reviews/)

## 參與者

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

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/css-js-files/)

## 贊助

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

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=PGV92BZCFTDL4&item_name=Donation%20to%20jameslow%2ecom&currency_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8)