前言介紹
- 這款 WordPress 外掛「Custom Classes」是 2012-02-05 上架。
- 目前有 3000 個安裝啟用數。
- 上一次更新是 2017-11-28,距離現在已有 2713 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.8 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.3 以上。
- 有 11 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
classes |
內容簡介
Custom Classes 外掛允許您為文章建立自訂類別 (post_class()被呼叫時) 和
的類別 (body_class()被呼叫時)。它在後台的編輯文章和編輯分類畫面上建立了一個新增自訂類別的輸入方塊的項目。當您的佈景主題呼叫 post_class() 函數時,自訂文章類別會加入進去,這通常是在文章顯示之時。當您的佈景主題呼叫 body_class() 函數時,自訂的 body 類別就會在文章的單一檢視頁面上加入。
喜歡這個外掛嗎?
請考慮協助這個專案:
捐款。
註冊成為我的會員。
評分給這個外掛。
專業支援
如果您需要這個外掛作者的專業支援,您可以前往Theme Hybrid的支援論壇,這是一個專業的 WordPress 幫助/支援網站,在這裡我維護著超過 7.5 萬個使用者的所有插件和佈景主題的支援。
外掛開發
如果您是佈景主題作者、外掛作者或只是一個程式碼愛好者,您可以在這個外掛的 GitHub 儲存庫上關注它的開發情況。
這可以用於自訂文章型態嗎?
當然可以。這個外掛可以適用於您網站上的所有公開文章型態,不僅僅是限定在「文章」型態上。
它不起作用了!
很有可能,這表示您的佈景主題未使用適當的函數 (post_class() 和 body_class()),您需要聯繫您的佈景主題作者以加以修復,或更好的方法是使用正確編碼的 Theme Hybrid 主題!
原文外掛簡介
The Custom Classes plugin allows you to create custom classes for posts (when post_class() is called) and for the
class (when body_class() is called). It creates a meta box on the edit post and edit term screens in the admin with input boxes for adding your custom classes.Custom post classes are added whenever your theme calls the post_class() function, which is generally whenever a post is shown. Custom body classes are added on the single view of the post whenever your theme calls the body_class() function.
Like this plugin?
Please consider helping the cause by:
Making a donation.
Signing up at my site.
Rating the plugin.
Professional Support
If you need professional plugin support from me, the plugin author, you can access the support forums at Theme Hybrid, which is a professional WordPress help/support site where I handle support for all my plugins and themes for a community of 75,000+ users (and growing).
Plugin Development
If you’re a theme author, plugin author, or just a code hobbyist, you can follow the development of this plugin on it’s GitHub repository.
Will this work with custom post types?
Certainly. This plugin works with any public post type on your site. It’s not just limited to the “post” post type.
It’s not working!
Most likely, this means your theme isn’t using the appropriate functions (post_class() and body_class()). You’ll need to talk to your theme author to get them to fix this. Or, better yet, use a correctly-coded theme from Theme Hybrid!
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Custom Classes」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Widget CSS Classes 》Widget CSS Classes 可以讓您給 WordPress Widget 添加自定義的 class 和 id, 請注意,此外掛並不支援輸入自定義的 CSS。您需要修改主題的 style.css,或加入...。
Widget Classes 》Widget Classes 讓您可以在個別的小工具上添加類別,供主題使用。這是通過在小工具表單的末尾附加一個額外的表單欄位來完成的,您可以在這個欄位中輸入該類別...。
WP Widget CSS Classes 》WP Widget CSS Classes 讓您可以在 WordPress widgets 中新增自訂的 CSS 類別。。
Custom Menu Class 》這是一個簡單的外掛,可為菜單項目添加額外功能。此外掛可允許設定預先定義好的 CSS 類別(下拉框)給菜單項目。, 支援外掛「If Menu」:https://wordpress.o...。
Ambrosite Body Class Enhanced 》啟用此外掛後,body_class 樣板標籤會輸出五個額外的類別。, 單一文章 (is_single) :, postname-[永久連結別名], single-[分類別名], parent-[上...。
Text Widget with Class 》這是一個基於 WordPress 預設文字小工具的文字小工具。允許使用者將自訂的 class 加入到小工具容器和標題標籤中。, 它做到這個:,
MB Spirit for MINDBODY 》MB Spirit 可使你輕鬆地將 MINDBODY 的資訊整合到你的網站上。透過 MB Spirit 控制台,你可以建立任何數量的自訂小工具以顯示 MINDBODY 元素,包括:, , 課程...。
Custom CSS classes for images 》這款簡單的 WordPress 外掛在多媒體視窗添加了兩個額外的欄位,讓您除了預設的類別外,設定圖片的額外類別。安裝後,兩個欄位會被新增到多媒體視窗中,一個是...。
MAJpage Menu Class Extender 》此簡單的外掛程式是為了在舊版瀏覽器中支援辨識 wp_page_menu 和 wp_nav_menu 的「第一個元素」、「最後一個元素」、「父層元素」、「偶數項目」和「奇數項目...。
CGM Event Calendar 》在網站上增加一個活動日曆!非常適合健身中心、社區中心、任何規模的組織。創建活動類別以便簡單分類。, 更多資訊:, , , 在這裡觀看示範:http://www.creati...。
Extra Classes 》新增遺漏的類別, 新增遺漏的選單狀態。新增的類別包括:, , current-page-parent 和 current_page_parent, current-page-ancestor 和 current_page_ancestor,...。
Browser Body Classes with Shortcodes 》該外掛為網站增加瀏覽器特定的 body class,讓網站樣式設計更加容易,並提供 shortcode 功能,可讓特定瀏覽器和裝置上顯示或隱藏內容。, , , 此版本(v1.6)...。
WoWRecrut 》WoWRecrut 是一個簡單易用的 World of Warcraft 職業招募小工具,顯示你需要哪些職業以及他們的專精。, 特點, , 時尚且整潔的招募小工具。, 易於使用。, 多種...。
Events Manager – Ongoing Events 》, 需要安裝並啟用 Events Manager(免費外掛程式)。, , 這個易於使用的插件是以 Events Manager 為基礎,方便安排多天的事件,只需要一個預訂 / 報名表格即...。
SDROST CLASSES 》SDrost Classes 外掛可以協助管理課程。可以輕鬆編輯時間、地點、教練等相關資訊。不同的地點可以單獨創建並與課程相關聯。, 使用shortcode [sdrost_classes]...。