plugin-icon

Add Custom Post Type Slugs to Admin Body Class

Add Custom Post Type Slugs to Admin <body> Class
评级
5
最后更新
May 15, 2015
版本
1.3
活跃安装
10

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

免费使用Creator套餐
活跃安装
10
目前已测试版本
4.2.38
此插件可供下载,可用于您的 WordPress 自托管安装。