Add Custom Post Type Slugs to Admin `<body>` Class
Author: | Aaron T. Grogg (profile at wordpress.org) |
WordPress version required: | 3.1 |
WordPress version tested: | 4.2.2 |
Plugin version: | 1.3 |
Added to WordPress repository: | 25-02-2012 |
Last updated: | 15-05-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | http://aarontgrogg.com/2012/02/15/wordpress-p... |
Total downloads: | 2 080 |
Active installs: | 10+ |
Click to start download |
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
FAQ
ChangeLog