WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Custom CSS and JS

Custom CSS and JavaScript allows you to add custom internal and external CSS and JavaScripts to individual posts.

Using the Plugin

To use the plugin, add any combination of the following custom fields to your post.

custom_css Add an external stylesheet by adding a custom field with the name custom_css. The value of the field should be the path to your css file.

cusrom_css_code Add an internal stylesheet by adding a custom field with the name custom_css_code. Include your CSS code as the value. (Do not include the style tags.)

custom_js Add an external JavaScript by adding a custom field with the name custom_js. The value of the field should be the path to your script.

custom_js_code Add an internal JavaScript by adding a custom field with the name custom_js_code. Include your JavaScript code as the value. (Do not include the script tags.)

Custom Fields Order

  1. The external styles and scripts are included before the internal ones.
  2. If you include multiple entries for a given field, the entries will be included in order.

Okay, but what if I don’t like those tags?

Just edit custom-css-js.php and change the constants defined near the top of the file.

Note

This plugin only works with individual posts and pages. It does not work for list pages (e.g., the index page, search results).

Requires: 2.8 or higher
Compatible up to: 2.9.2
Last Updated: 2010-2-5
Downloads: 4,639

Ratings

3 stars
3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1