這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Easy Category Icons

描述

The Templatic Category Icons plugin adds the ability for your theme to be able to show a category icon in the sidebar and before the category title in your WordPress website.

After installing and activating the plugin, create one or more categories and upload images or icon for the particular category.

See screenshot-1 , screenshot-2 and screenshot-3 images for what this might look like in your category edit screen

After you have added category icon you will see it on category page before category title and before the title in categories widget. See the Easy Category Icons for further Information.

See screenshot-4 image for what this might look like in your category page

Last week, our team created few free plugins and this is one them. Many users show post categories in the sidebar. Often, they are just 5-15 categories. Would not it be cool to show a nice little icon beside the category name that goes with it?

This little WordPress Category Icon plugin does exactly that. With this plugin, you will be able to show a category icon in the sidebar and before the category title in your WordPress website.

And best of all, this is an absolutely free plugin.

How to use this WordPress Category Icon plugin?

  1. Download this Free Post Badges Plugin from below link.
  2. Connect to your WordPress dashboard (wp-admin) and navigate to Plugins > Add New Plugin > Upload Plugin > Now upload the downloaded (Templatic-CategoryIcons.zip) file > Click on Install Now
  3. Once you install this plugin successfully, click on Activate Plugin.
  4. To set the Category Icons to your added categories navigate to wp-admin > Post > Categories > here you will see Category Icons section
  5. Here you can assign category icons or Font awesome tags to your category as per your choice and save the settings.

螢幕截圖

安裝

Installation

  1. Upload the entire ‘Templatic-CategoryIcons’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題

Fontawesome icon js included twice

You can remove it by adding


remove_action(‘wp_head’,’templ_load_font_icon’);
remove_action(‘admin_head’,’templ_load_font_icon’);

in theme functions.php file

How can I use custom other than on category page or from category widget?

Yes. You can use function ” templ_get_the_icon ” where you have to pass the argument

templ_get_the_icon(array(‘size’=> ‘small’),’taxonomy’,term_id);

Which of the image you want to display (small,thumbnail,etc.) which has generated by WordPress add_image size , taxonomy is the taxonomy slug and the last parameter is category id.

It will return you an array which has fontawesome icon and category image

Can I include this plugin in my theme for distribution?

Yes. Source credits for the plugin should remain intact, per GPL requirements.

評價

2019年10月29日
It doesn’t show on posts or in category archives. It just shows in Admin dashboard which is useless when the icon doesn’t show on your pages.
2019年4月21日
Good Plugin But I Find Bug. if Turn On Wordpress Debug See notice In Category Widgets in Line 399 and 400 thanks
2019年4月16日
Wp 5.1.1 using Creativo theme and WP Bakery simple circular images used as badges to represent different divisions of clients company…Images load and show in category list but nothing shows in posts or latest news grid.
閱讀全部10個評價

貢獻者及開發者

“Easy Category Icons” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Easy Category Icons 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

  • Initial Release