Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Post/Page specific custom CSS icon

Post/Page specific custom CSS

v0.3.2
by Łukasz Nowicki · 4.6 (42 reviews)

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 fi …

6K+ active installs Updated Nov 27, 2026 Tested to 7.2 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card
Post/Page specific custom CSS

About Post/Page specific custom CSS

Post/Page specific custom CSS is a plugin that allows you to add custom CSS to specific posts or pages on your WordPress website. It provides a special area in the post/page edit field where you can attach your CSS code, and you can choose whether to add the CSS to multi-page/post views or only to a single view. To use this plugin, make sure your WordPress version is at least 5.0 and that your server has PHP 7.0 installed.

Screenshots

Post/Page specific custom CSS screenshot
Post/Page specific custom CSS screenshot
Post/Page specific custom CSS screenshot

Changelog

0.3.2

  • Release date: 2026-11-27
  • Fixed CSS backslash escapes (for example content: ‘\2022’) being removed when a post, page, or product is saved. Thank you @tremlas for the report.

0.3.1

  • Release date: 2026-07-23
  • Fixed “single page view only” checkbox not reflecting the saved value (and overwriting it on save)
  • Bundled css-tree 3.1.0 locally instead of loading it from a CDN
  • Editor CSS linting is advisory only (highlights issues); CSS is no longer blocked on the front end via a client-side validity flag
  • Removed _phylax_ppsccss_valid meta and the hidden live-checker form field
  • Added server-side sanitization for CSS embedded in 0.3.0

  • Release date: 2025-07-21

  • Added support for WooCommerce products (custom CSS can now be assigned to individual products)
  • Plugin renamed from “Post/Page specific custom CSS” to “Post/Page Specific Custom Code”

0.2.5

  • Release date: 2025-07-17
  • Highlighting for CSS code is now enabled by default.
    7 years ago it was optional due to performance concerns on
    slower machines — nowadays that looks outdated; you can still
    disable it using:
    add_filter(‘postpage_sccss-highlight_code’, ‘__return_false’);
  • Fixed incorrect validation of an empty CSS field
  • Replaced CSS validation with a linting mechanism
  • Minor code improvements and compatibility testing with newer PHP and WordPress versions
  • Removed birthday notice

0.2.4

  • Release date: 2022-01-20
  • Fixed default post/page values (they were reversed; 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
  • Many fixes to stay aligned with WordPress coding standards
  • Birthday banner visible only to administrators
  • Birthday banner can now be hidden until the following year
  • Editors can optionally be allowed to edit CSS

0.2.1

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

0.2.0

  • Release date: 2020-02-25
  • Compatibility: WordPress 5.3 and earlier
  • Added an options page for the plugin
  • Added default CSS for posts and pages
  • Added CSS highlighting for posts, pages, and the options screen (default CSS)
  • Larger editor fields by default, with an option to make them even bigger

0.1.4

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

0.1.3

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

0.1.2

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

0.1.1

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

0.1.0

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

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…