このプラグインは 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

FAQ

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 reply
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 はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“LH Add Roles to Body Class” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.00 May 20, 2018
Initial release

1.01 June 12, 2019
Bettter code architecture