Dieses Plugin ist nicht mit den jüngsten 3 Hauptversionen von WordPress getestet worden. Es wird möglicherweise nicht mehr gewartet oder unterstützt und kann Kompatibilitätsprobleme haben, wenn es mit neueren Versionen von WordPress verwendet wird.

Taxonomy Font Icons

Beschreibung

Taxonomy Font Icons lets users connect Font Awesome icons to categories, tags and custom taxonomies.

In addition to just connecting the icons, Taxonomy Font Icons also provides few helper functions that will print a list of a single post taxonomy terms and full taxonomy term list with their corresponding icons.

By default, Taxonomy Font Icons uses Font Awesome icons served from CDN. For developers, there is a filter called tfi_filters_default_args which you can use, so that you may define what icon font to use, where to load it and what icons are available for selection.

Custom Icon Font

If you want to use a custom icon font, here is an example using a custom made icon pack from Icomoon:

add_filter( 'tfi_filters_default_args', 'my_custom_icons' );
function my_custom_icons() {
    $args['taxonomies'] = array( 'post_tag' );
    $args['font']       = 'icomoon';
    $args['stylesheet'] = get_stylesheet_directory_uri() . '/icomoon/style.css';
    $args['icons']      = array(
        'icon-user'    => '&#xe600',
        'icon-heart'   => '&#xe601',
        'icon-grid'    => '&#xe602',
        'icon-volume'  => '&#xe603',
        'icon-home'    => '&#xf015',
        'icon-navicon' => '&#xf0c9',
        );

    return $args;
}

Screenshots

  • List of tags with their icons.
  • Single post with categories and tags.
  • Icons to choose from.
  • Custom icon font.

Installation

  1. Upload taxonomy-font-icons to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‚Plugins‘ menu in WordPress
  3. Connect icons to taxonomies on their corresponding menus
  4. Use the following functions in your templates to show term lists with icons:
    • Single post: tfi_the_taxonomies( 'post_tag' );
    • To list taxonomies: tfi_all_taxonomies( array( 'category', 'post_tag' ) );

Rezensionen

4. Februar 2017
Easy to use and exactly what I needed to add icons to my categories where desired.
Lies alle 2 Rezensionen

Mitwirkende & Entwickler

„Taxonomy Font Icons“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

Übersetze „Taxonomy Font Icons“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

1.0

  • First release.