這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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〉的開發相關工作。

參與者

將〈LH Add Roles to Body Class〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.00 May 20, 2018
Initial release

1.01 June 12, 2019
Bettter code architecture