Colorful Categories

描述

New Categories widget in the awesome style! Bring colours to your categories widget – make every category in its colour.

All colours are stored as term meta variables.

Features:

  • custom taxonomies support
  • manually customize colours for each category
  • intelligent (automatic) colours selection
  • different themes
  • easy to customize
  • responsive and flexible widget

屏幕截图

  • Categories widget in bubble theme.
  • Categories widget in box theme.
  • Page to manage categories with new column ‘Color’.

安装

  1. Unzip the archive on your computer
  2. Upload colorful-categories directory to the /wp-content/plugins/ directory
  3. 通过WordPress的的“Plugins”菜单激活插件
  4. Add a widget to the sidebar on the page ‘Widgets’. You can change widget title, taxonomy, theme and show/hide posts count
  5. (optional) Customize colours on the page to manage categories (under the column ‘Color’)

常见问题

How to assign new colour?

Open the page to edit tags or categories and change the colour in the column “Color”.

How does intelligent colour selection work?

The plugin does check if the category name contains one of the keywords and sets the pre-defined colour for this category.
For example, a category that contains Facebook will be coloured to a dark blue colour.

How to get a colour for a specific category?

Use WordPress default function: 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.20

  • Tested up to WordPress 6.6.

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.