{"id":7921,"date":"2010-02-05T01:55:07","date_gmt":"2010-02-05T01:55:07","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-css-and-js\/"},"modified":"2010-05-20T20:59:30","modified_gmt":"2010-05-20T20:59:30","slug":"custom-css-and-js","status":"publish","type":"plugin","link":"https:\/\/cl.wordpress.org\/plugins\/custom-css-and-js\/","author":5730379,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"2.9.2","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"Custom CSS and JavaScript","header_author":"PJ Dietz","header_description":"","assets_banners_color":"","last_updated":"2010-05-20 20:59:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/pjdietz.com\/wordpress-plugins\/custom-css-js\/","header_author_uri":"http:\/\/pjdietz.com","rating":0,"author_block_rating":0,"active_installs":900,"downloads":13042,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[356,229,86,1739],"plugin_category":[59],"plugin_contributors":[81735],"plugin_business_model":[],"class_list":["post-7921","plugin","type-plugin","status-publish","hentry","plugin_tags-css","plugin_tags-javascript","plugin_tags-post","plugin_tags-stylesheet","plugin_category-utilities-and-tools","plugin_contributors-pjdietz","plugin_committers-pjdietz"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-css-and-js.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><a href=\"http:\/\/pjdietz.com\/wordpress-plugins\/custom-css-js\/\">Custom CSS and JS<\/a> allows you to add stylesheets and JavaScripts to any individual post by adding custom fields. Both CSS and scripts can be either internal or external. Since this is a plugin, the custom CSS and JavaScript are available to any theme used to display the post, as long as the themes call \"wp_head\".<\/p>\n\n<h3>Using the Plugin<\/h3>\n\n<p>To use the plugin, add any combination of the following custom fields to your post.<\/p>\n\n<p><strong>custom_css<\/strong>\nAdd an external stylesheet by adding a custom field with the name <strong>custom_css<\/strong>. The value of the field should be the path to your css file.<\/p>\n\n<p><strong>cusrom_css_code<\/strong>\nAdd an internal stylesheet by adding a custom field with the name <strong>custom_css_code<\/strong>. Include your CSS code as the value. (Do not include the style tags.)<\/p>\n\n<p><strong>custom_js<\/strong>\nAdd an external JavaScript by adding a custom field with the name <strong>custom_js<\/strong>. The value of the field should be the path to your script.<\/p>\n\n<p><strong>custom_js_code<\/strong>\nAdd an internal JavaScript by adding a custom field with the name <strong>custom_js_code<\/strong>. Include your JavaScript code as the value. (Do not include the script tags.)<\/p>\n\n<h3>Custom Fields Order<\/h3>\n\n<ol>\n<li>The external styles and scripts are included before the internal ones.<\/li>\n<li>If you include multiple entries for a given field, the entries will be included in order.<\/li>\n<\/ol>\n\n<h3>Okay, but what if I don\u2019t like those tags?<\/h3>\n\n<p>Just edit custom-css-js.php and change the constants defined near the top of the file.<\/p>\n\n<h3>Note<\/h3>\n\n<p>This plugin only works with individual posts and pages. It does not work for list pages (e.g., the index page, search results).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unpack the download package.<\/li>\n<li>Upload folder to the \u201c\/wp-content\/plugins\/\u201d directory<\/li>\n<li>Activate the plugin through the \u201cPlugins\u201d menu in WordPress<\/li>\n<\/ol>","raw_excerpt":"Custom CSS and JavaScript allows you to add custom internal and external CSS and JavaScripts to individual posts.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/7921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=7921"}],"author":[{"embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pjdietz"}],"wp:attachment":[{"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=7921"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=7921"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=7921"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=7921"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=7921"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=7921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}