[wordpress插件] Add Custom Post Type Slugs to Admin Body Class将自定义帖子类型子句添加到管理正文类

wordpress 插件 文章 2020-01-29 21:40 0 361 全屏看文
评分

100

100

描述

When in Admin mode, this plug-in adds classes to the tag to let

在管理模式下,此插件将类添加到 标记中,以让

your CSS know where you are.

您的CSS知道您的位置。

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.

这使您可以编写自定义CSS和JS来与WP中的这些不同的编辑页面进行交互。

Please let me know if you have any questions/suggestions/thoughts,

如果您有任何疑问/建议/想法,请告诉我,

Atg

Atg

安装步骤

    1. Download the ZIP
    2. 下载ZIP

    3. Unzip the ZIP
    4. 解压缩ZIP

    5. Copy/paste the unzipped files into your WP plug-in directory (/wp-content/plugins/)
    6. 将解压缩的文件复制/粘贴到WP插件目录( / wp-content / plugins /

    7. From within WP’s Plugin Admin panel, Activate the plug-in
    8. 在WP的“插件管理”面板中,激活插件

    9. Write some wicked CSS and JS to amaze your friends and befuddle your enemies!
    10. 编写一些邪恶的CSS和JS来使您的朋友惊奇并迷惑您的敌人!

下载地址

https://downloads.wordpress.org/plugin/add-custom-post-type-slugs-to-admin-body-class.1.3.zip

https://downloads.wordpress.org/plugin/add-custom-post-type-slugs-to-admin-body-class.1.3.zip

-EOF-