Do you need to show taxonomy photographs or class icons in WordPress?

By means of default, WordPress does no longer include an method to add a taxonomy symbol or class icon. It merely simply presentations a class or taxonomy title at the archive pages.

On this article, we’ll display you how one can simply upload taxonomy photographs or class icons in WordPress. We’ll additionally display you how one can show taxonomy photographs for your archive pages.

Adding category icons or taxonomy images in WordPress

Why Upload Taxonomy Photographs in WordPress?

By means of default, your WordPress web page does no longer include an choice so as to add photographs to your taxonomies like classes and tags (or every other customized taxonomy).

It merely makes use of taxonomy names all over together with the class archives or taxonomy archive pages.

Plain taxonomy archive page

This seems to be roughly undeniable and dull.

When you get a large number of seek site visitors on your taxonomy pages, then you could need to lead them to glance extra enticing.

One of the best ways to make a web page extra attention-grabbing is by way of including photographs. You’ll be able to upload taxonomy photographs or class icons to make those pages extra user-friendly and attractive.

A just right instance of this is a website online like NerdWallet that makes use of class icons of their header:

Category Icons example Nerdwallet

You’ll be able to additionally use it create stunning navigational sections for your homepage like Bankrate:

Category Icon Navigation Blocks

That being stated, let’s check out how one can simply upload taxonomy photographs in WordPress.

Simply Upload Taxonomy Photographs in WordPress

Very first thing you want to do is set up and turn on the Classes Photographs plugin. For extra main points, see our step by step information on how one can set up a WordPress plugin.

Upon activation, you’ll merely move to the Posts » Classes web page. You’ll understand the plugin might be appearing a placeholder symbol to your current classes.

Default placeholder image

To make a choice your individual class icon, you want to click on at the Edit hyperlink underneath a class.

At the Edit class web page, scroll all the way down to the ground and also you’ll discover a shape to add your individual taxonomy symbol.

Upload new taxonomy image

Merely click on at the ‘Add/Upload New Symbol’ button to add the picture you need to make use of for that individual class.

Don’t disregard to click on at the Upload Class or Replace button to avoid wasting your adjustments.

Subsequent, you’ll repeat the method to add photographs for different class photographs. You’ll be able to additionally add photographs to your tags and every other taxonomies as neatly.

Categories with thumbnail images

Now the issue is that when including the pictures, for those who talk over with a class web page, you then received’t see your class symbol there.

To show it, it is important to edit your WordPress theme or kid theme. If that is your first time enhancing WordPress recordsdata, then you could need to see our information on how one can replica and paste code in WordPress.

First, it is important to attach on your WordPress website online the use of an FTP shopper or your WordPress internet hosting document supervisor.

As soon as attached, it is important to in finding the template answerable for showing your taxonomy archives. This may well be archives.php, class.php, tag.php, or taxonomy.php recordsdata.

For extra main points, see our information on how one can in finding which recordsdata to edit in a WordPress theme.

After you have discovered the document, you’ll want to obtain it on your pc and open in a textual content editor like Notepad or TextEdit.

Now paste the next code the place you need to show your taxonomy symbol. In most cases, you might need to upload it ahead of the taxonomy identify or the_archive_title() tag.


After including the code, you want to avoid wasting this document and add it again on your web page the use of FTP.

You’ll be able to now talk over with the taxonomy archive web page to peer it show your taxonomy symbol. This is the way it seemed on our demo archive web page.

Category with image

Now, it is going to nonetheless glance a little awkward, however don’t concern. You’ll be able to taste that the use of a little bit little bit of customized CSS.

This is the customized CSS we used for the taxonomy symbol.

img.taxonomy-img {
    drift: left;
    max-height: 100px;
    max-width: 100px;
    show: inline-block;

Relying for your theme, you may additionally want to taste surrounding components like taxonomy identify and outline.

We merely wrapped our taxonomy archive identify and outline in a

part and added a customized CSS elegance. We then used the next CSS code to regulate identify and outline.

.taxonomy-title-description {
    show: inline-block;
    padding: 18px;

This is the way it seemed in a while on our take a look at web page.

After adding custom CSS

Exclude Taxonomies from Showing Taxonomy Photographs

Now some customers might best need to use taxonomy photographs for particular taxonomies.

For example, for those who run an on-line retailer the use of WooCommerce, then you could need to exclude product classes.

Merely return to the Classes Photographs web page in WordPress admin space and take a look at the taxonomies you need to exclude.

Exclude categories

Don’t disregard to click on at the Save Adjustments button to retailer your settings.

We are hoping this text helped you learn to simply upload taxonomy photographs in WordPress. You might also need to see those helpful class hacks and plugins for WordPress or see our recommendations on getting extra site visitors from search engines like google and yahoo.

When you favored this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be able to additionally in finding us on Twitter and Fb.

The publish Upload Taxonomy Photographs (Class Icons) in WordPress first gave the impression on WPBeginner.

WordPress Maintenance

[ continue ]