Add Custom Post Type Slugs to Admin Body Class
by Aaron T. Grogg on WordPress.org
When in Admin mode, this plug-in adds classes to the 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
Active installations10+
Weekly downloads
9+0.00%
Version1.3
Last updated5/15/2015
WordPress version3.1
Tested up to4.2.38
Tags
adminbodyclass