{"id":53002,"date":"2016-12-16T03:16:24","date_gmt":"2016-12-16T03:16:24","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/postpage-specific-custom-css\/"},"modified":"2025-07-21T14:45:47","modified_gmt":"2025-07-21T14:45:47","slug":"postpage-specific-custom-css","status":"publish","type":"plugin","link":"https:\/\/sq-xk.wordpress.org\/plugins\/postpage-specific-custom-css\/","author":8024611,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3.0","stable_tag":"0.3.0","tested":"6.8.5","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Post\/Page Specific Custom Code","header_author":"\u0141ukasz Nowicki","header_description":"","assets_banners_color":"d3d5d6","last_updated":"2025-07-21 14:45:47","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=LEXEGNRGEF7H4","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/postpage-specific-custom-css\/","header_author_uri":"https:\/\/lukasznowicki.info\/","rating":4.6,"author_block_rating":0,"active_installs":7000,"downloads":78081,"num_ratings":42,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.0":{"tag":"0.1.0","author":"lukasznowicki","date":"2016-12-21 14:18:45"},"0.1.1":{"tag":"0.1.1","author":"lukasznowicki","date":"2017-08-03 10:03:43"},"0.1.2":{"tag":"0.1.2","author":"lukasznowicki","date":"2018-05-05 21:17:58"},"0.1.3":{"tag":"0.1.3","author":"lukasznowicki","date":"2018-05-18 10:31:01"},"0.1.4":{"tag":"0.1.4","author":"lukasznowicki","date":"2019-02-15 14:12:59"},"0.2.0":{"tag":"0.2.0","author":"lukasznowicki","date":"2020-04-27 09:13:28"},"0.2.1":{"tag":"0.2.1","author":"lukasznowicki","date":"2020-12-18 22:03:01"},"0.2.2":{"tag":"0.2.2","author":"lukasznowicki","date":"2021-05-14 17:15:11"},"0.2.3":{"tag":"0.2.3","author":"lukasznowicki","date":"2021-11-29 21:36:19"},"0.2.4":{"tag":"0.2.4","author":"lukasznowicki","date":"2025-07-17 12:27:27"},"0.2.5":{"tag":"0.2.5","author":"lukasznowicki","date":"2025-07-17 12:17:46"},"0.3.0":{"tag":"0.3.0","author":"lukasznowicki","date":"2025-07-21 14:45:47"}},"upgrade_notice":{"0.2.5":"<p>Several important code improvements have been made. The plugin is now leaner, runs more efficiently, and no longer clutters the screen with extra information. We recommend updating.<\/p>"},"ratings":{"1":2,"2":1,"3":0,"4":5,"5":34},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1707637,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1707637,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2292438,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2292438,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.3.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3331294,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3331294,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3331294,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"If you don't see the CSS panel, open Screen Options and make sure \"Custom CSS\" is checked.","2":"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.","3":"Plugin settings panel."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2001,73668,245196,746,286],"plugin_category":[45],"plugin_contributors":[82008],"plugin_business_model":[],"class_list":["post-53002","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-css","plugin_tags-per-page-css","plugin_tags-post-specific","plugin_tags-product","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-lukasznowicki","plugin_committers-lukasznowicki"],"banners":{"banner":"https:\/\/ps.w.org\/postpage-specific-custom-css\/assets\/banner-772x250.png?rev=2292438","banner_2x":"https:\/\/ps.w.org\/postpage-specific-custom-css\/assets\/banner-1544x500.png?rev=2292438","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/postpage-specific-custom-css\/assets\/icon-128x128.png?rev=1707637","icon_2x":"https:\/\/ps.w.org\/postpage-specific-custom-css\/assets\/icon-256x256.png?rev=1707637","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/postpage-specific-custom-css\/assets\/screenshot-1.png?rev=3331294","caption":"If you don't see the CSS panel, open Screen Options and make sure \"Custom CSS\" is checked."},{"src":"https:\/\/ps.w.org\/postpage-specific-custom-css\/assets\/screenshot-2.png?rev=3331294","caption":"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."},{"src":"https:\/\/ps.w.org\/postpage-specific-custom-css\/assets\/screenshot-3.png?rev=3331294","caption":"Plugin settings panel."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>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.<\/p>\n\n<h3>Requirements<\/h3>\n\n<p>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.<\/p>\n\n<!--section=installation-->\n<h4>Automatic installation<\/h4>\n\n<p>Automatic installation is the easiest way. Simply log in to your WordPress admin panel, go to the Plugins menu, and click \"Add New\".<\/p>\n\n<p>In the search field, type <em>Post\/Page Specific Custom Code<\/em> and click Search Plugins. Then click the \u201cInstall Now\u201d button.<\/p>\n\n<h4>Manual installation<\/h4>\n\n<ol>\n<li>Upload the <code>post-page-specific-custom-css<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>That's it \u2013 enjoy! :)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='is%20it%20free%3F'><h3>Is it free?<\/h3><\/dt>\n<dd><p>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\u2019t stop you :)<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Release date: 2025-07-21<\/li>\n<li>Added support for WooCommerce products (custom CSS can now be assigned to individual products)<\/li>\n<li>Plugin renamed from \"Post\/Page specific custom CSS\" to \"Post\/Page Specific Custom Code\"<\/li>\n<\/ul>\n\n<h4>0.2.5<\/h4>\n\n<ul>\n<li>Release date: 2025-07-17<\/li>\n<li>Highlighting for CSS code is now enabled by default.\n7 years ago it was optional due to performance concerns on\nslower machines \u2014 nowadays that looks outdated; you can still\ndisable it using:\n    add_filter('postpage_sccss-highlight_code', '__return_false');<\/li>\n<li>Fixed issue with incorrect validation of an empty CSS field<\/li>\n<li>Replaced CSS validation with a linting mechanism<\/li>\n<li>Minor code improvements and compatibility testing with newer PHP and WordPress versions<\/li>\n<li>Removed birthday notice<\/li>\n<\/ul>\n\n<h4>0.2.4<\/h4>\n\n<ul>\n<li>Release date: 2022-01-20<\/li>\n<li>Fixed default post\/page values (it was in reverse, thank you, @olandir, for pointing that out!)<\/li>\n<\/ul>\n\n<h4>0.2.3<\/h4>\n\n<ul>\n<li>Release date: 2021-11-29<\/li>\n<li>Fixed options saving issue<\/li>\n<li>Fixed text formatting<\/li>\n<\/ul>\n\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>Release date: 2020-05-10<\/li>\n<li>Lot of fixes, to stay up to date with WordPress code rules<\/li>\n<li>Birthday banner visible only for administrators<\/li>\n<li>Birthday banner now can be hidden for the next year<\/li>\n<li>Now it's possible to let editors edit CSS<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Release date: 2020-04-27<\/li>\n<li>Custom JavaScript note<\/li>\n<li>Birthday note<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Release date: 2020-02-25<\/li>\n<li>Compatibility: 5.3 and previous<\/li>\n<li>Added options page for plugin<\/li>\n<li>Added default CSS for post and page<\/li>\n<li>Added CSS highlighting for posts, page and options (for default CSS)<\/li>\n<li>Thou it's a bit bigger by default, you may make input view even bigger<\/li>\n<\/ul>\n\n<h4>0.1.4<\/h4>\n\n<ul>\n<li>Release date: 2018-11-21<\/li>\n<li>Status: Stable<\/li>\n<li>Compatibility: 5.0 and previous<\/li>\n<li>Minor code refactoring<\/li>\n<\/ul>\n\n<h4>0.1.3<\/h4>\n\n<ul>\n<li>Release date: 2018-05-18<\/li>\n<li>Status: Stable<\/li>\n<li>Compatibility: 4.9.6 and previous<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>Release date: 2018-05-05<\/li>\n<li>Status: Stable<\/li>\n<li>Compatibility: 4.9.5 and previous<\/li>\n<li>Added screenshots, icons and header image for WordPress repository<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Release date: 2017-08-03<\/li>\n<li>Status: Stable<\/li>\n<li>Compatibility: 4.8.1 and previous<\/li>\n<li>Added screenshots, icons and header image for WordPress repository<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Release date: 2016-12-16<\/li>\n<li>Status: Stable<\/li>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Add custom CSS to posts, pages, or WooCommerce products, with optional archive support. Includes a dedicated editor box.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/53002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=53002"}],"author":[{"embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lukasznowicki"}],"wp:attachment":[{"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=53002"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=53002"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=53002"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=53002"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=53002"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sq-xk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=53002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}