Title: Post/Page Specific Custom Code
Author: Łukasz Nowicki
Published: <strong>16 décembre 2016</strong>
Last modified: 21 juillet 2025

---

Recherche d’extensions

![](https://ps.w.org/postpage-specific-custom-css/assets/banner-772x250.png?rev=
2292438)

![](https://ps.w.org/postpage-specific-custom-css/assets/icon-256x256.png?rev=1707637)

# Post/Page Specific Custom Code

 Par [Łukasz Nowicki](https://profiles.wordpress.org/lukasznowicki/)

[Télécharger](https://downloads.wordpress.org/plugin/postpage-specific-custom-css.0.3.0.zip)

 * [Détails](https://fr.wordpress.org/plugins/postpage-specific-custom-css/#description)
 * [Avis](https://fr.wordpress.org/plugins/postpage-specific-custom-css/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/postpage-specific-custom-css/#installation)
 * [Développement](https://fr.wordpress.org/plugins/postpage-specific-custom-css/#developers)

 [Support](https://wordpress.org/support/plugin/postpage-specific-custom-css/)

## Description

Post/Page/Product-specific custom code allows you to add custom CSS styles to individual
posts, pages, or WooCommerce products. It provides a dedicated area in the editor
screen where you can write your CSS code. You can also choose whether the CSS should
apply only to the single view or also to archive-type views.

A new meta box will appear below the content editor on the edit screen for posts,
pages, and products. You can enter any custom CSS there and decide whether it loads
only on the single view or also on archive pages like category listings or product
grids.

### Requirements

This plugin requires at least WordPress 5.0 (remember always to keep your WordPress
installation up to date!) and PHP 7.4 on your server.

## Captures d’écrans

 * [[
 * If you don’t see the CSS panel, open Screen Options and make sure « Custom CSS»
   is checked.
 * [[
 * Enter CSS code that will apply only to your post or page. You can force the plugin
   to apply it only on single post/page views.
 * [[
 * Plugin settings panel.

## Installation

#### Automatic installation

Automatic installation is the easiest way. 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 Code_ and click Search Plugins.
Then click the “Install Now” button.

#### Manual installation

 1. Upload the `post-page-specific-custom-css` folder to the `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. That’s it – enjoy! 🙂

## FAQ

### Is it free?

Yes, it’s licensed under GPLv2 (or later). However, if you’d like to support my 
work, you’re welcome to make a donation of a few dollars. I won’t stop you 🙂

## Avis

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

### 󠀁[Spam message asking for money](https://wordpress.org/support/topic/spam-message-asking-for-money/)󠁿

 [brandoncollins](https://profiles.wordpress.org/brandoncollins/) 3 mai 2024

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.

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

### 󠀁[Spammy plugin](https://wordpress.org/support/topic/spammy-plugin-2/)󠁿

 [crissman](https://profiles.wordpress.org/crissman/) 1 mai 2024

Uninstalled. Spams the WP Admin page with money begs.

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

### 󠀁[A bit buggy](https://wordpress.org/support/topic/a-bit-buggy-4/)󠁿

 [revixi5](https://profiles.wordpress.org/revixi5/) 4 février 2024

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.

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

### 󠀁[A very useful plugin](https://wordpress.org/support/topic/a-very-useful-plugin-81/)󠁿

 [Victor Tyavbee](https://profiles.wordpress.org/tsquare07/) 3 mai 2023

The plugin is very useful

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

### 󠀁[Such a handy plugin!](https://wordpress.org/support/topic/such-a-handy-plugin-3/)󠁿

 [jjminkle](https://profiles.wordpress.org/jjminkle/) 2 mai 2023

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.

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

### 󠀁[Gets the CSS displayed](https://wordpress.org/support/topic/gets-the-css-displayed/)󠁿

 [jmlord](https://profiles.wordpress.org/jmlord/) 6 janvier 2023

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.

 [ Lire les 42 avis ](https://wordpress.org/support/plugin/postpage-specific-custom-css/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« Post/Page Specific Custom Code » est un logiciel libre. Les personnes suivantes
ont contribué à cette extension.

Contributeurs

 *   [ Łukasz Nowicki ](https://profiles.wordpress.org/lukasznowicki/)

[Traduisez « Post/Page Specific Custom Code » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/postpage-specific-custom-css)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/postpage-specific-custom-css/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/postpage-specific-custom-css/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/postpage-specific-custom-css/)
par [RSS](https://plugins.trac.wordpress.org/log/postpage-specific-custom-css/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 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 issue with 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 (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

## Méta

 *  Version **0.3.0**
 *  Dernière mise à jour **il y a 10 mois**
 *  Installations actives **7 000+**
 *  Version de WordPress ** 5.0 ou plus **
 *  Testé jusqu’à **6.8.5**
 *  Version de PHP ** 7.4 ou plus **
 *  Langue
 * [English (US)](https://wordpress.org/plugins/postpage-specific-custom-css/)
 * Étiquettes
 * [custom css](https://fr.wordpress.org/plugins/tags/custom-css/)[per page CSS](https://fr.wordpress.org/plugins/tags/per-page-css/)
   [product](https://fr.wordpress.org/plugins/tags/product/)[woocommerce](https://fr.wordpress.org/plugins/tags/woocommerce/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/postpage-specific-custom-css/advanced/)

## Évaluations

 4.6 sur 5 étoiles.

 *  [  34 avis à 5 étoiles     ](https://wordpress.org/support/plugin/postpage-specific-custom-css/reviews/?filter=5)
 *  [  5 avis à 4 étoiles     ](https://wordpress.org/support/plugin/postpage-specific-custom-css/reviews/?filter=4)
 *  [  0 avis à 3 étoile     ](https://wordpress.org/support/plugin/postpage-specific-custom-css/reviews/?filter=3)
 *  [  1 avis à 2 étoile     ](https://wordpress.org/support/plugin/postpage-specific-custom-css/reviews/?filter=2)
 *  [  2 avis à 1 étoiles     ](https://wordpress.org/support/plugin/postpage-specific-custom-css/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/postpage-specific-custom-css/reviews/#new-post)

[Voir tous les avis](https://wordpress.org/support/plugin/postpage-specific-custom-css/reviews/)

## Contributeurs

 *   [ Łukasz Nowicki ](https://profiles.wordpress.org/lukasznowicki/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/postpage-specific-custom-css/)

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LEXEGNRGEF7H4)