WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin v1.0

Custom CSS and JS

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

Custom CSS and JS

The facts

Active installs
900+
Price
Free
Last updated
20 May 2010
Added
Feb 2010
Requires WP
2.8
Tested up to
WP 2.9.2
Downloads
13,571

Our analysis

AI-assisted

Custom CSS and JS is a WordPress plugin that allows you to add custom stylesheets and JavaScripts to individual posts using custom fields. You can include both internal and external CSS and JavaScript by specifying the appropriate custom fields in your post. The plugin ensures that these scripts and styles are available to any theme that calls 'wp_head'.

This plugin is suitable for users who want to customise the appearance and functionality of specific posts or pages without affecting the entire site. It requires basic knowledge of CSS and JavaScript to implement effectively.

Best for: This plugin suits developers or users looking to customise specific posts on their WordPress site.

What it does well

  • Allows addition of custom CSS and JS to individual posts
  • Supports both internal and external stylesheets and scripts
  • Compatible with any theme that calls 'wp_head'

Where it falls short

  • Only works for individual posts and pages, not list pages
  • Last updated in May 2010, may not be compatible with newer WordPress versions
  • Directory score of 42/100 indicates potential issues

Verdict

Custom CSS and JS offers a straightforward way to add custom styles and scripts to individual posts, but its outdated status may limit its effectiveness in modern WordPress environments.

From the developer

The author's own description of Custom CSS and JS, lightly tidied.

Custom CSS and JS 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”.

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).

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for developer tooling.

WPCode

WPCode

93

Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...

Free 3M+ installs 4.9★ (1,873)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
Shortcoder

Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...

Free 100k+ installs 4.9★ (227)
Insert PHP Code Snippet

Add PHP code to your pages and posts easily using shortcodes.

Free 90k+ installs 4.9★ (705)
Code Snippets

An easy, clean, and simple way to enhance your site with code snippets.

Free 1M+ installs 4.7★ (509)