WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Page Specific Stylesheets

Adds a box allowing for the addition of page-specifc and post-specific CSS stylesheets. Reduces the need to edit and clutter up the style.css file.

What's It Do?

This plugin adds a box to your pages and posts allowing for page-specific or post-specific CSS stylesheets.

Why Use It?

After developing quite a few WordPress websites, it seems to me that the style.css file gets bloated. If you add a style used on only one page, and then later that page is deleted, you're visitors now have to download those styles that aren't even used. It's wasteful, but maintaining a clean style.css file requires an active effort. This plugin solves that by attaching the these styles to the page or post, allowing them to be updated just like the content is and deleted with the page.

It keeps your style.css file clean and reduces unused style clutter.

New in Version 1.1

A new Fancy Editor has been added utilizing CodeMirror to enhance the experience of editing your styles. As of right now, it is disabled by default, but provides these features when enabled:

  • Indenting
  • Valid / Invalid Rule Highlighting
  • Basic Auto-Complete (Ctrl+Shift)
  • Plus a few other features.

See the FAQs for info on the filter to enable the Fancy Editor.

What About Efficiency?

There shouldn't be an issue with overhead from the plugin. Admin code is only executed in the admin panel and front end code is executed on the front end. If you're website has a large amount of page-specific styles within it that can be migrated into the plugin, it can boost performance by reducing the download size of your style.css file.

Roadmap

The plugin is still rather simple. However, as I use it personally and at work, it will be maintained moving forward.

The following features are currently planned.

  • Custom post type support.
  • Options page with the ability to purge the database of style data.

If you have a feature idea, suggest it.

Notes

  • Style data is NOT removed on uninstall to prevent accidental deletion of important styles. The option to purge this data automatically is on the Roadmap as seen above. The meta_key used is pss_style if you need to delete it manually.

Requires: 3.5 or higher
Compatible up to: 3.9.1
Last Updated: 2014-6-28
Downloads: 217

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.