WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Add Custom Post Type Slugs to Admin Body Class

Add Custom Post Type Slugs to Admin `<body>` Class

When in Admin mode, this plug-in adds classes to the <body> tag to let your CSS know where you are.

For example, if you are viewing the list of all your Posts, you would get this additional class:

edit-list-post

And, when you are editing a Post, something like this:

edit-page-post

Alternatively, for custom posts, for example "movie", you would see either:

edit-list-movie

or:

edit-page-movie

This allows you to write custom CSS and JS to interact with these varying edit pages within WP.

Please let me know if you have any questions/suggestions/thoughts, Atg http://aarontgrogg.com/ aarontgrogg@gmail.com

Tags: , ,

Requires: 3.1 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-11
Downloads: 589

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.

100,1,1