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

Post/Page specific custom CSS

描述

Post/Page specific custom CSS will allow you to add cascade stylesheet to specific posts/pages. It will give you special area in the post/page edit field to attach your CSS. It will also let you decide if this CSS has to be added in multi-page/post view (like archive posts) or only in a single view.

You will see additional meta box below text input area on posts and pages screen. You may add whatever CSS you want. You may choose if you want to add this CSS code on certain single page/post or on pages like archive etc.

Requirements

This plugin requires at least WordPress 5.0 (never forget to update your WP installation!) and PHP 7.0 installed on your server.

屏幕截图

  • If you can’t see CSS panel, check screen options and make sure “Custom CSS” is checked
  • Write your CSS code available only for your post or page. You may force the plugin to add CSS code only on single page view.
  • Added settings

安装

Automatic installation

Automatic installation is the easiest. Simply log in to your WordPress admin panel, go to the Plugins menu and click Add New.

In the search field type Post/Page specific custom CSS and click Search Plugins. Then you can install it by simply clicking “Install Now” button.

Manual installation

  1. Upload post-page-specific-custom-css directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s all folks, have fun 🙂

常见问题

Is it free?

Yes, it is under GPLv2 (and later) licence. However, you can donate me a few dollars if it makes you feel good. I certainly have nothing against it.

评价

2024 年 5 月 3 日
Be warned! This plugin is a sneaky scam. Out of nowhere, a giant info box shoves a payment message in your face on the WordPress admin page. It’s clear the developer has no clue about user experience, and leaving their code on your site is a recipe for disaster.
2024 年 2 月 4 日
The CSS metabox has a spinner that continuously spin, and the CSS is now inject inside the BODY content of the page instead of the HEAD… probably another bug. Had to switch to Simple CSS. It inject the code in the header and minify it.
2023 年 5 月 2 日
I am surprised this plugin is not more popular. It is a great way to add a little CSS to a page. Sometimes I just find it handy when I want to test CSS before adding it to my main stylesheet. Especially if I want to show someone global page changes before actually doing them globally.
2023 年 1 月 6 日
Hi! Great plugin, exactly what I was looking for. On my version (6.1.1) the CSS validation fails due to line 679 (there is no data object in wp object).const ppsccEditPost = wp.data.select(‘core/edit-post’); Otherwise the CSS saves and displays correctly.
阅读所有42条评价

贡献者及开发者

“Post/Page specific custom CSS” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

0.2.4

  • Release date: 2022-01-20
  • Fixed default post/page values (it was in reverse, thank you, @olandir, for pointing that out!)

0.2.3

  • Release date: 2021-11-29
  • Fixed options saving issue
  • Fixed text formatting

0.2.2

  • Release date: 2020-05-10
  • Lot of fixes, to stay up to date with WordPress code rules
  • Birthday banner visible only for administrators
  • Birthday banner now can be hidden for the next year
  • Now it’s possible to let editors edit CSS

0.2.1

  • Release date: 2020-04-27
  • Custom JavaScript note
  • Birthday note

0.2.0

  • Release date: 2020-02-25
  • Compatibility: 5.3 and previous
  • Added options page for plugin
  • Added default CSS for post and page
  • Added CSS highlighting for posts, page and options (for default CSS)
  • Thou it’s a bit bigger by default, you may make input view even bigger

0.1.4

  • Release date: 2018-11-21
  • Status: Stable
  • Compatibility: 5.0 and previous
  • Minor code refactoring

0.1.3

  • Release date: 2018-05-18
  • Status: Stable
  • Compatibility: 4.9.6 and previous

0.1.2

  • Release date: 2018-05-05
  • Status: Stable
  • Compatibility: 4.9.5 and previous
  • Added screenshots, icons and header image for WordPress repository

0.1.1

  • Release date: 2017-08-03
  • Status: Stable
  • Compatibility: 4.8.1 and previous
  • Added screenshots, icons and header image for WordPress repository

0.1.0

  • Release date: 2016-12-16
  • Status: Stable
  • Initial release