Adds fields to the post and page edit pages that allow you to insert custom JavaScript or CSS for that post or page.
As of April 2026, Insert JavaScript and CSS is a WordPress css plugin with 400 active installations and a 4.1/5 rating from 10 reviews. It has been downloaded 26K+ times in total. Requires WordPress 3.0+ and PHP false+. Available on WordPress.org since 2012. Last updated 13 years ago — may have compatibility concerns. Top alternative: WPCode – Insert Headers and Footers +….
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 <head> 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.
| WordPress | 3.0+ requiredTested up to 3.4.2 |
| PHP | false+ required |
Fix so CSS and JS will show up in post types other than post.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.