Plugin info

Total downloads: 26,378
Active installs: 500
Total reviews: 10
Average rating: 4.1
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 2
Last updated: 7/26/2012 (4906 days ago)
Added to WordPress: 6/22/2012 (13 years old)
Minimum WordPress version: 3.0
Tested up to WordPress version: 3.4.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 4906 days ago • 10 reviews

24/100

Is Insert JavaScript and CSS abandoned?

Possibly abandoned (last update 4906 days ago).

Compatibility

Requires WordPress: 3.0
Tested up to: 3.4.2
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Specific Files
Rating 5.0/5 (1 reviews)Active installs 20
Style Buddy
Rating 0.0/5 (0 reviews)Active installs 10
Insert JS or CSS in post via Custom Field
Rating 0.0/5 (0 reviews)Active installs 10
Simple Custom CSS and JS
Rating 4.4/5 (100 reviews)Active installs 700,000
Scripts n Styles
Rating 4.4/5 (30 reviews)Active installs 30,000

Description

Easily add custom JavaScript or CSS to a single post or page.

When activated, a new icon is added to the post edit page near the icon you use
to add media to a post. Clicking the new icon brings up a screen where you can
insert JavaScript and CSS that will be included with the current post.

Anything entered into the text field on the JavaScript tab will be inserted into
the section of your web page. Same is true of the CSS tab. This allows
you to insert arbitrary JavaScript and CSS into any post or page you would
like without having to resort to loading it on all pages.

Installation

  1. Upload the insert-javascript-css to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

OR

  1. Use the plugin installer inside of WordPress

Frequently Asked Questions

Do I need to wrap in script or style tags?

Does’t matter. If you do, they’re left in place. If you don’t, they’ll be added.

What about archive pages?

Unless you specifically tell it not to, this plugin will include any JavaScript or CSS
included in a post on archive pages as well.

This can lead to conflicts. Take for example two posts, one with body { background: blue; }
and the other with body { background: green; }. Whichever post comes last will take priority,
but that’s probably not what you want.

If you add a custom field named ijsc_single_only to your post the JavaScript or CSS will
only add when is_single() is true. It doesn’t matter what value you put in ijsc_single_only, only
that there is a value.

Who can insert JavaScript or CSS

By default users with the capability upload_files are allowed to insert JavaScript
or CSS into posts. This seemed to be a logical choice as you need to have a certain level of trust
for users to upload files.

If you would like to change what capability is required you can edit the IJC_CAPABILITY_REQUIRED
constant defined in insert-javascript-css.php inside the plugin folder.

Review feed

No reviews available

Screenshots

  1. Icon added to the post media area

    Icon added to the post media area

  2. Form to enter JavaScript

    Form to enter JavaScript

  3. Form to enter CSS

    Form to enter CSS

Changelog

0.2

Fix so CSS and JS will show up in post types other than post.

0.1

Initial release