This plugin allows Admin users to individually add HTML, custom CSS, Classes and JavaScript directly to Post, Pages or any other custom post types.
As of April 2026, Scripts n Styles is a WordPress css plugin with 30K+ active installations and a 4.4/5 rating from 30 reviews. It has been downloaded 379K+ times in total. Requires WordPress 5.0+ and PHP 7.4+. Available on WordPress.org since 2010. Last updated 2 years ago — may have compatibility concerns. Downloads are up 11% this week. Top alternative: WPCode – Insert Headers and Footers +….
This plugin allows Admin users the ability to add custom CSS and JavaScript directly into individual Post, Pages or any other registered custom post types. You can also add classes to the body tag and the post container. There is a Global settings page for which you can write Scripts n Styles for the entire blog.
Admin’s can also add classes to the TinyMCE “Formats” dropdown which users can use to style posts and pages directly. As of Scripts n Styles 3+ styles are reflected in the post editor.
Because only well trusted users should ever be allowed to insert JavaScript directly into the pages of your site, this plugin restricts usage to admin type users. Admin’s have access to even more sensitive areas by definition, so that should be relatively safe 😉
breaks js on editor, causes terrible load issues and removed my blocks on publishing
Broke javascript in the Gutenberg block editor. Editing became painfully slow on my site with this plugin installed. It should be taken off WordPress.org
thank you to the author 😀
HTML meta tags added in non-amp version is not showing in amp version.
Like yoast SEO meta tags are shown in both the amp and non-amp version.
But this plugin is not showing meta tags in both version i.e amp and non-amp.
I am using multisite language site and I am using manual code of hreflang tag which is working fine in non-amp version but all codes and meta tags added in this plugin is not showing in amp version.
Can u make it amp friendly?
Does what is says and much more!! – you can add custom html, css, scripts in the header or footer globally, or on a per page basis. You can even generate your own shortcodes! You can also conditionally add generic site scripts above the included script, and add custom classes to the body or post or dropdowns that appear on the page.
And to the 3-star reviewer who said that scripts are hardcoded with: <script type=”text/javascript”>
The plugin lets you add your own code, but has the <script type=”text/javascript”> hardcoded, so it doesn’t help if you need other types of scripts.
You can get around this by adding your entire script block using the HTML input area, rather than in the SCRIPTS input area.
Fantastic little plugin that has become one of my go-tos in my ‘plugin essentials’ toolbox. Kudos to the dev for providing their time free of charge for us all to benefit from.
| WordPress | 5.0+ requiredTested up to 6.2.9 |
| PHP | 7.4+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.