WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Łukasz Nowicki v0.3.1

Post/Page Specific Custom Code

Add custom CSS to individual posts, pages, or WooCommerce products, with optional archive support and a dedicated code editor.

Post/Page Specific Custom Code

The facts

Rating
4.6★ from 42
Active installs
6k+
Price
Free
Last updated
23 Jul 2026
Added
Dec 2016
Requires WP
5.0
Tested up to
WP 7.0.4
Requires PHP
7.4
Downloads
83,393

Our analysis

AI-assisted

Post/Page Specific Custom Code is a WordPress plugin that allows you to add custom CSS to individual posts, pages, or WooCommerce products. You can write your CSS in a dedicated box on the edit screen and choose whether it should load only on single views or also on archive-style views.

This plugin is suitable for developers or site owners who want to apply specific styling to individual content items without affecting the entire site. It provides a code editor with syntax highlighting for easier editing of CSS.

Best for: This plugin suits developers or site owners looking to apply custom styles to specific content items.

What it does well

  • Allows custom CSS for individual posts, pages, and products
  • Options to load CSS on single or archive views
  • Code editor with syntax highlighting for easier use

Where it falls short

  • CSS may be printed in the footer if discovered late
  • Limited support for products rendered outside main query
  • Not suitable for AJAX or infinite scroll content

Verdict

Post/Page Specific Custom Code provides a straightforward way to add targeted CSS, though it has limitations in certain scenarios like AJAX content.

From the developer

Łukasz Nowicki's own description of Post/Page Specific Custom Code, lightly tidied.

Post/Page Specific Custom Code lets you add custom CSS to individual posts, pages, or WooCommerce products. A dedicated box on the edit screen is where you write your CSS. You can also choose whether it should load only on the single view or on archive-style views as well.

The meta box appears below the content editor for posts, pages, and products. Enter your CSS there and decide whether it applies only on the single view or also on archive-style views (blog/category listings, the WooCommerce shop and product categories/tags). Product CSS also loads on a best-effort basis for products rendered through standard WooCommerce loop templates outside the main query (for example the [products] shortcode). CSS discovered only after the page head may be printed in the footer. Custom product markup that skips WooCommerce templates needs a small integration hook. Products injected only via AJAX or infinite scroll are not covered.

CSS fields use a code editor with syntax highlighting by default. You can turn highlighting off with a filter if you prefer a plain textarea (for example on slower machines).

Requirements

This plugin requires WordPress 5.0 or later (please keep WordPress up to date) and PHP 7.4 or later on your server.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for developer tooling.

WPCode

WPCode

93

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...

Free 3M+ installs 4.9★ (1,873)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
Shortcoder

Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...

Free 100k+ installs 4.9★ (227)
Insert PHP Code Snippet

Add PHP code to your pages and posts easily using shortcodes.

Free 90k+ installs 4.9★ (705)
Code Snippets

An easy, clean, and simple way to enhance your site with code snippets.

Free 1M+ installs 4.7★ (509)