{"id":4954,"date":"2009-03-08T16:43:11","date_gmt":"2009-03-08T16:43:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/simpler-css\/"},"modified":"2010-01-26T16:29:19","modified_gmt":"2010-01-26T16:29:19","slug":"simpler-css","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/simpler-css\/","author":278387,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.5","stable_tag":"0.5","tested":"3.0.5","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Simpler CSS","header_author":"Frederick Ding","header_description":"","assets_banners_color":"","last_updated":"2010-01-26 16:29:19","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=759905","header_plugin_uri":"http:\/\/simplerplugins.wordpress.com\/","header_author_uri":"http:\/\/www.frederickding.com\/","rating":0,"author_block_rating":0,"active_installs":40,"downloads":5841,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.2b","0.3","0.4","0.5"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1573768","resolution":"2","location":"plugin","width":525,"height":335},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1573768","resolution":"1","location":"plugin","width":152,"height":127}},"screenshots":{"1":"The menu item as it appears under the Appearance menu.","2":"The options page, with CSS code."}},"plugin_section":[],"plugin_tags":[2769,356,1249,2255],"plugin_category":[43,51,59],"plugin_contributors":[85121,86268],"plugin_business_model":[],"class_list":["post-4954","plugin","type-plugin","status-closed","hentry","plugin_tags-appearance","plugin_tags-css","plugin_tags-themes","plugin_tags-wpmu","plugin_category-customization","plugin_category-multisite","plugin_category-utilities-and-tools","plugin_contributors-freddyware","plugin_contributors-oremj","plugin_committers-freddyware","plugin_committers-frederickding"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simpler-css.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/simpler-css\/trunk\/screenshot-1.jpg?rev=1573768","caption":"The menu item as it appears under the Appearance menu."},{"src":"https:\/\/ps.w.org\/simpler-css\/trunk\/screenshot-2.jpg?rev=1573768","caption":"The options page, with CSS code."}],"raw_content":"<!--section=description-->\n<p>This Simpler CSS mu-plugin allows WordPress \u00b5 hosts to enable users to add custom stylesheets to their blogs.<\/p>\n\n<p>The plugin creates a new menu item under the Appearance menu in WordPress 2.7\nthat allows users to enter custom CSS code that will be injected into the\n     section of their blog. The CSS is stored in the blog's options table\nand is filtered through a standard PHP function before being outputted, preventing\nthe user from inserting malicious code into the header.<\/p>\n\n<p>For non-WordPress \u00b5 blogs, this plugin provides an easy way to modify the appearance of installed\nthemes or plugins (such as Sociable) without modifying theme\/plugin files that may change\nwith upgrades. No write access is required to any files for Simpler CSS to function, as it stores\nits data in the database's options table \u2014 and that means theme\/plugin upgrades won't impact\nyour custom CSS.<\/p>\n\n<p>The custom CSS will only show when the theme has the necessary <code>wp_header()<\/code> function\nin the <code>&lt;head&gt;<\/code> section, as most themes now do.<\/p>\n\n<p>Props go to Jeremiah Orem who created the original Custom User CSS plugin on the directory.\nI merely took that, contributed a thorough readme.txt, and fixed the code to add the menu item\nunder the Appearance menu.<\/p>\n\n<!--section=installation-->\n<h4>For WordPress \u00b5<\/h4>\n\n<ol>\n<li>Upload the <code>simpler-css.php<\/code> file to the <code>\/wp-content\/mu-plugins\/<\/code> directory. The other files\nshould not be uploaded, and the file cannot be in a subdirectory.<\/li>\n<li>You're done! As a mu-plugin, Simpler CSS is automatically enabled for all blogs.<\/li>\n<\/ol>\n\n<h4>For normal WordPress installations<\/h4>\n\n<ol>\n<li>Upload the <code>simpler-css<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why isn't the code showing up on the blog?<\/dt>\n<dd><p>Remember that this plugin depends on standard WordPress hooks to operate. If the\nactive theme does not have <code>wp_header()<\/code> in its code, this plugin is ineffective.\n<em>Remedy:<\/em> add the code <code>&lt;?php wp_header(); ?&gt;<\/code> to the theme files in the <code>&lt;head&gt;<\/code> section.<\/p><\/dd>\n<dt>Why can't I add JavaScript to the blog's code?<\/dt>\n<dd><p>This plugin will only operate for Cascading Style Sheets code. The custom CSS is escaped\nand outputted within a set of <code>&lt;style&gt;<\/code> tags, preventing bots from abusing the functionality\nto inject malicious code. Allowing users to inject JavaScript into the blog's header\nis a security vulnerability, thus this plugin does not permit it.<\/p><\/dd>\n<dt>Why isn't my CSS showing as it should be?<\/dt>\n<dd><p>Check first of all to make sure that your custom CSS <em>does not<\/em> include the opening <code>&lt;style type=\"text\/css\"&gt;<\/code>\nand closing <code>&lt;\/style&gt;<\/code> HTML tags. These tags are outputted automatically, and including\nthem manually in your CSS code could lead to malfunctions.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.5<\/h4>\n\n<ul>\n<li>Updated compatibility to 3.0-alpha (Subversion trunk version)<\/li>\n<li>Fixed <code>htmlspecialchars()<\/code> usage to be compatible with PHP &lt; 5.2.3 <\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Fixed <code>&lt;td&gt;<\/code> tag that wasn't closed<\/li>\n<li>Changed regular expression pattern to be more liberal, to allow external URLs<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Updated compatibility to 2.9-rare (Subversion trunk version)<\/li>\n<\/ul>","raw_excerpt":"A simple (mu-)plugin enabling custom CSS on WordPress and WordPress \u00b5 blogs.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/4954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=4954"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/freddyware"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=4954"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=4954"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=4954"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=4954"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=4954"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=4954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}