Colorful Categories

外掛說明

使用樣式令人驚艷的新式分類小工具。這個小工具能為分類小工具中的各個分類新增色彩,讓每個分類都擁有專屬色彩。

全部色彩會儲存為分類法詞彙中繼資料變數。

外掛功能

  • 支援自訂分類法
  • 可以手動為每個分類自訂色彩
  • 智慧型自動指派色彩
  • 可使用於不同佈景主題
  • 易於自訂
  • 回應式設計小工具

螢幕擷圖

  • 使用泡泡外觀樣式的分類法工具
  • 使用方塊外觀樣式的分類法工具
  • 使用新增欄位 [色彩] 管理分類的頁面

安裝方式

  1. 在個人裝置上解壓縮安裝套件。
  2. 將解壓縮所得的 colorful-categories 目錄上傳至 /wp-content/plugins/ 目錄。
  3. 在 WordPress 管理後台的 [外掛] 選單中啟用外掛。
  4. 在 [小工具] 頁面將這個外掛的小工具新增至資訊欄,可自訂小工具標題、分類法、外觀樣式及顯示/隱藏內容數量。
  5. (選用) 在可編輯分類或標籤的頁面,透過 [色彩] 欄位管理要指派的色彩。

常見問題集

如何指派新色彩?

開啟可以編輯標籤或分類的頁面,並在新增的 [色彩] 欄位中變更色彩。

智慧型自動指派色彩的運作方式為何?

這個外掛會檢查分類名稱是否包含特定關鍵字,比對符合的話便會為這類分類指派預先定義的色彩。舉例來說,如果分類名稱包含 Facebook,便會指派深藍色給這個分類。

如何為指定分類設定色彩?

使用 WordPress 預設函式 get_term_meta($term_id, 'cc_color', true);

使用者評論

2023 年 12 月 24 日
The default embedding works great with widgets. Can also be used directly in code to color categories from list of posts for example.
2023 年 11 月 15 日 1 則留言
It work nice on themes which support widgets. is there any change to use this functionality as a gutenberg block for those who use 2023 and 2024 themes?
2022 年 7 月 3 日
This plugin is helper my works. Japanese people is often color for tag and category because we are a culture of color.
2022 年 5 月 18 日
I really don't need it but it adds value and color to my site. Easy to use and customizable. Very well done. Thank you!
2019 年 1 月 7 日
Very helpful and simple plugin! Thank you developer.
閱讀全部 13 則使用者評論

參與者及開發者

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

參與者

〈Colorful Categories〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Colorful Categories〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

2.0.19

  • Tested up to WordPress 6.4.

2.0.18

  • WordPress 6.0 support.

2.0.17

  • Fixed a problem with displaying.

2.0.16

  • Improved plugin stability and security.

2.0.15

  • Enhanced security.

2.0.14

  • Minor changes.

2.0.13

  • Fixed colors saving process.
  • WordPress 5.4 support added.

2.0.12

  • Removed column “Color” from the private taxonomies.
  • Small code refactoring.

2.0.11

  • WordPress 5.3 support added.

2.0.10

  • WordPress 5.2 support added.

2.0.9

  • Updated file-header information and readme.txt.

2.0.8

  • Added filter ‘colorful_categories_term_text’.

2.0.7

  • Added action ‘colorful_categories_styles’ to customize the output of theme styles.
  • Small design improvements.

2.0.6

  • Fixed functionality to handle translations.

2.0.5

  • Small backend design improvements.

2.0.4

  • Added class “current” to the categories that are currently selected.

2.0.3

  • Updated functionality due to deprecated parameter in the function get_terms().

2.0.2

  • Fixed compatibility with PHP 5.3-.

2.0.1

  • Improved update script.

2.0.0

  • Plugin completely updated to work with the WordPress term meta. All the stored data is moved from the options table to the terms meta table.

1.1.2

Fixed option “Show empty categories” in the widget settings.

1.1.1

  • Compatibility with the latest version of WordPress.

1.1.0

  • Minor improvements and optimization.

1.1.0

  • Fixed issue with the browser cache.
  • Fixed issue with an empty colour cell right after the adding of a new category/tag.
  • Improved functionality: the colour will be removed from the database after removing the related term.
  • Small minor improvements.

1.0.6

  • Added a few new filters for better customization.
  • A lot of small improvements, fixes and updates.

1.0.5

  • Added field to limit categories to be displayed for the widget.
  • Fixed field to select a theme.

1.0.4

  • Added field to exclude categories from the widget.

1.0.3

  • Fixed colours column.

1.0.2

  • Fixed link to the term (category, tag, etc).

1.0.1

  • Added support for non-hierarchical taxonomies.
  • Added customizable message ‘List is empty’ in case there is nothing to display in the widget.

1.0

  • Initial release.