Custom Body Class

外掛說明

You can use this plugin to add an unique CSS class to your pages or posts.

There’s a way to add a class to appear only on mobile devices. You can do that by simply adding mobile- on the front of
the class. For example, if you want to have the class “car” for mobile side, you need to use “mobile-car”.

安裝方式

  1. Install Custom Body Class either via the WordPress.org plugin directory, or by uploading the files to your /wp-content/plugins/ directory
  2. After activating Custom Body Class go to any edit page and see the Custom Body Class metabox in the right sidebar.

使用者評論

2020 年 4 月 24 日
Just what I needed
2020 年 1 月 28 日
You should be able to enter any valid class-name, including characters like % (percentage) etc. They are useful for some purposes.
2019 年 6 月 22 日
Very useful and easy to use plugin, it helps a lot in page customization. And it works with multisite too. Thanks.
2019 年 5 月 1 日
This plugin works just as I would expect. Great options without making it too complex. Thank you!
2019 年 3 月 13 日
Perfect that you've created this plug-in. I use to have another plug-in (slug as body class) but this plug-in is nicely updated. Thanks!
閱讀全部 19 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Custom Body Class〉的開發相關工作。

參與者

將 Custom Body Class 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.7.2

  • Fix: Properly instantiate plugin default settings.

0.7.1

  • Update: Check for nonce existence on settings page form.

0.7.0

  • Update: Better escapes for the plugin’s settings page.
  • Update: Modified textdomain as the plugin’s name.
  • Add: Nonce verification for the plugin’s settings page.

0.6.0

  • Fix: Now the metabox will load even if the Autocomplete feature is off.
  • Add: The capability to restrict the metabox for Administrators only.

0.5.0

  • Add an option for a global class

0.4.0

  • Add support for classes on mobile devices

0.3.0

  • Add a tag selector with autocomplete for all post types

0.0.3

  • Quick archives fix

0.0.2

  • Small fixes, and typos

0.0.1

  • We are on