该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

LH Add Roles to Body Class

描述

Ever wanted to style your content differently depending on the role of the logged in user viewing your content?

Well now you can, simply activate the plugin and you are right to go.

Like this plugin? Please consider leaving a 5-star review.

Love this plugin or want to help the LocalHero Project? Please consider making a donation.

安装

  1. Upload the entire lh-add-roles-to-body-class folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. That is it

常见问题

Why would I want this?

So you can add CSS selectors based on those classes to override and modify your site design.

For example a red background for an administrator

.role-administrator { background-color: red; }

What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: https://shawfactor.com/contact/

评价

2021 年 1 月 29 日 1 回复
Great plugin, easy to use and a most have for all who needs different style depending on user roles
阅读所有1条评价

贡献者及开发者

“LH Add Roles to Body Class” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.00 May 20, 2018
Initial release

1.01 June 12, 2019
Bettter code architecture