WPCode
93Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Add custom CSS to individual posts, pages, or WooCommerce products, with optional archive support and a dedicated code editor.
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
Where it falls short
Post/Page Specific Custom Code provides a straightforward way to add targeted CSS, though it has limitations in certain scenarios like AJAX content.
Ł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).
This plugin requires WordPress 5.0 or later (please keep WordPress up to date) and PHP 7.4 or later on your server.
Other plugins for developer tooling.
Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...
Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...
Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...
Add PHP code to your pages and posts easily using shortcodes.
An easy, clean, and simple way to enhance your site with code snippets.