A
by Aaron T. Grogg
5 (1 reviews)
Add Custom Post Type Slugs to Admin Body Class
Add Custom Post Type Slugs to Admin <body> Class
Tested up to WP 4.2 (Current: 6.9)
v1.3
Current Version v1.3
Updated 10 years ago
Last Update on 15 May, 2015
Synced 7 hours ago
Last Synced on
Rank
#43,530
-1937 this week
Active Installs
10+
—
No change
KW Avg Position
N/A
—
No change
Downloads
2.6K
+3 today
Support Resolved
0%
—
No change
Rating
100%
Review 5 out of 5
5
(1 reviews)
Next Milestone 20
10+
20+
17,665
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 7 more installs to reach 20+
Rank Changes
Current
#43,530
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
5.0
1 reviews
Overall
100%
5
1
(100%)
4
0
(0%)
3
0
(0%)
2
0
(0%)
1
0
(0%)
Tracked Keywords
Showing 0 of 0| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| No keyword data available yet. | ||||
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 1.3
- Last Updated
- May 15, 2015
- Requires WP
- 3.1+
- Tested Up To
- 4.2
- PHP Version
- N/A
- Author
- Aaron T. Grogg
Support & Rating
- Rating
- ★ ★ ★ ★ ★ 5
- Reviews
- 1
- Support Threads
- 0
- Resolved
- 0%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowFrequently Asked Questions
Common questions about Add Custom Post Type Slugs to Admin Body Class
Additional CSS classes are added to the HTML body tag when certain pages load in Admin mode
If you are in WP Admin, if you click Posts, you will see a list of all your Posts, and the CSS class edit-list-post
will be added to the HTML body tag. If you click a specific Post, you will enter the edit page for that Post,
and the CSS class edit-page-post will be added to the HTML body tag. Note the difference between the two:
edit-list-post vs. edit-page-post, list vs. page
Similarly, if you click Pages, the same thing as above will happen, except the word post will be replaced with
the word page in each of the CSS classes. Futher, if you have custom post types, the word post will be replaced
with whatever your custom post type is, so a custom post type called "Movies" will results in the following CSS classes
being added:
edit-list-movie vs. edit-page-movie
will be added to the HTML body tag. If you click a specific Post, you will enter the edit page for that Post,
and the CSS class edit-page-post will be added to the HTML body tag. Note the difference between the two:
edit-list-post vs. edit-page-post, list vs. page
Similarly, if you click Pages, the same thing as above will happen, except the word post will be replaced with
the word page in each of the CSS classes. Futher, if you have custom post types, the word post will be replaced
with whatever your custom post type is, so a custom post type called "Movies" will results in the following CSS classes
being added:
edit-list-movie vs. edit-page-movie
Really only if you used some custom CSS or JS in your WP Admin. You could color the List or Edit headers or
backgrounds differently, add custom validation to some fields, etc. Maybe when you are viewing the list of Posts,
you want to see red column and field headers, blue when viewing Pages, and green when viewing Movies, and for the
Movies Edit page, you have a custom field that you want to validate as some specific format, like a date or number,
you could add custom JS just for that page, all based on these new classes on the HTML body tag.
backgrounds differently, add custom validation to some fields, etc. Maybe when you are viewing the list of Posts,
you want to see red column and field headers, blue when viewing Pages, and green when viewing Movies, and for the
Movies Edit page, you have a custom field that you want to validate as some specific format, like a date or number,
you could add custom JS just for that page, all based on these new classes on the HTML body tag.