Title: Custom CSS for Pages and Posts
Author: Suzanne
Published: <strong>2013 年 9 月 20 日</strong>
Last modified: 2013 年 9 月 20 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/custom-css-for-pages-and-posts.svg)

# Custom CSS for Pages and Posts

 作者：[Suzanne](https://profiles.wordpress.org/ahjira/)

[下载](https://downloads.wordpress.org/plugin/custom-css-for-pages-and-posts.zip)

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

 [支持](https://wordpress.org/support/plugin/custom-css-for-pages-and-posts/)

## 描述

This plugin adds a metabox to all post and page edit screens ( and optionally to

custom post type edit screens ) that allows the user specify custom CSS for that
page or post. All it does is wrap your CSS in tags and then inserts the block into
the section of your page/post. Pretty simple.

## 屏幕截图

[⌊New metabox with Custom CSS text area⌉⌊New metabox with Custom CSS text area⌉[

New metabox with Custom CSS text area

## 安装

 1. If you use FTP to upload your plugins, unzip the zip file and upload the resulting
    directoy to /wp-content/plugins/ If you use the automatic uploader, there’s no 
    need to unzip the file first.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

You will now see a new metabox on all edit screens for posts and pages.

## 常见问题

Q: How do I enable this for my custom post types?
 A: Add this line to your theme’s
functions.php file and change POST_TYPE to the name of your post type.

add_post_type_support( ‘POST_TYPE’, ‘ahjira-custom-css’);

Examples:

add_post_type_support( ‘book’, ‘ahjira-custom-css’);
 add_post_type_support( ‘event’,‘
ahjira-custom-css’); add_post_type_support( ‘product’, ‘ahjira-custom-css’);

For more information, please visit the plugin’s home page at:
 http://ahjira.com/
plugins/custom-css-for-pages-and-posts

## 评价

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

### 󠀁[MUST INSTALL on every WordPress project I touch](https://wordpress.org/support/topic/must-install-on-every-wordpress-project-i-touch/)󠁿

 [dmanexe](https://profiles.wordpress.org/dmanexe/) 2016 年 9 月 3 日

Love it, works perfect…the CSS box on each page is a SMART little feature, and I
definitely automatically install this plugin on EVERY WordPress project I start…
clients always end up wanting little page-specific tweaks, man, much easier. A+!

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

### 󠀁[Looks great, but doesn't work.](https://wordpress.org/support/topic/looks-great-but-doesnt-work-2/)󠁿

 [Ricardo](https://profiles.wordpress.org/rhormazar/) 2016 年 9 月 3 日 1 回复

It seems like it wont output the CSS in the custom field generated by this plugin.
I am using Genesis framework and not much customization done yet. I’d be willing
to change my review if it is fixed. Looks like a great plugin.

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/custom-css-for-pages-and-posts/reviews/)

## 贡献者及开发者

「Custom CSS for Pages and Posts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「Custom CSS for Pages and Posts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/custom-css-for-pages-and-posts)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

• Updated for auto-update
 • Refined the code for better performance

#### 1.0

• Initial release

## 额外信息

 *  版本 **1.1**
 *  最后更新：**13 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/custom-css-for-pages-and-posts/)
 * 标签
 * [css](https://cn.wordpress.org/plugins/tags/css/)
 *  [高级视图](https://cn.wordpress.org/plugins/custom-css-for-pages-and-posts/advanced/)

## 评级

 4.3 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/custom-css-for-pages-and-posts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/custom-css-for-pages-and-posts/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/custom-css-for-pages-and-posts/)