Do you wish to add classes and tags to photographs in your WordPress media library?
Tags and classes may also help you set up media information in a means that is smart to you. This may make it simpler to seek out pictures whenever you want them.
On this article, we’ll present you find out how to simply add classes and tags to the WordPress media library.
![Add categories and tags to WordPress media library Add categories and tags to WordPress media library](https://www.wpbeginner.com/wp-content/uploads/2016/08/how-to-add-categories-and-tags-to-wordpress-media-library-og.png)
Why Add Classes and Tags to Pictures in WordPress Media Library?
WordPress comes with a characteristic known as taxonomies, which lets you type your posts into classes and tags or create your individual customized group varieties on your content material.
Nevertheless, the default class and tag taxonomies are solely out there for posts. Which means that these taxonomies might be added to any WordPress submit kind, together with pages, attachments, or any customized submit kind you could be utilizing in your weblog.
While you add a picture to your WordPress posts or pages, it’s saved within the WordPress media library as an attachment. Which means that it’s a submit kind and may have its personal taxonomies, too.
Including classes and tags to your WordPress pictures may also help you discover and kind pictures simply. As a substitute of wanting via your complete picture library, you possibly can simply search by class or tag.
Having mentioned that, let’s see find out how to simply add classes and tags to photographs within the WordPress media library. We’ll cowl two strategies, and you should utilize the short hyperlinks under to leap to the one you wish to use:
Technique 1: Add Classes to Pictures within the WordPress Media Library
If you wish to add classes to your pictures within the WordPress media library, then you should utilize this technique.
First, you’ll want to set up and activate the Media Library Categories plugin. For extra particulars, see our step-by-step information on find out how to set up a WordPress plugin.
This plugin works out of the field, and there aren’t any settings so that you can configure. Upon activation, the plugin will merely add a Classes tab underneath the Media menu tab within the WordPress dashboard.
Now, so as to add new classes on your pictures, head over to the Media » Classes tab from the WordPress admin sidebar.
Right here, you’ll discover that every one the classes that you’ve been utilizing on your posts are displayed in the precise column.
You should use these classes on your pictures. Nevertheless, if you wish to create a brand new one, then merely kind a class title and slug within the ‘Add New Class’ part.
![Create and add categories for images Create and add categories for images](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-categories-for-images.png)
![Create and add categories for images Create and add categories for images](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-categories-for-images.png)
As soon as you’re performed, click on the ‘Add New Class’ button to retailer your settings.
Subsequent, go to the Media » Library web page from the admin space and click on on the ‘Edit’ hyperlink underneath any picture the place you wish to add a class.
![Choose an image to edit Choose an image to edit](https://www.wpbeginner.com/wp-content/uploads/2016/08/choose-an-image-to-edit-envira.png)
![Choose an image to edit Choose an image to edit](https://www.wpbeginner.com/wp-content/uploads/2016/08/choose-an-image-to-edit-envira.png)
It will open the picture of your selection on the ‘Edit Media’ web page, the place you possibly can simply choose a class for it from the ‘Classes’ part in the precise column.
As soon as you’re performed, don’t neglect to click on the ‘Replace’ button to save lots of your settings.
![Add images category Add images category](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-image-category-1.jpg)
![Add images category Add images category](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-image-category-1.jpg)
If you’d like, it’s also possible to create sub-categories for the pictures. For extra info, see our information on find out how to add classes and subcategories.
Upon getting added the classes for all the pictures, you possibly can simply type them on the ‘Library’ web page. To do that, choose a class of your selection from the ‘View all classes’ dropdown menu and click on the ‘Filter’ button.
The WordPress media library will then solely show pictures that belong to that class.
![Filter images by category Filter images by category](https://www.wpbeginner.com/wp-content/uploads/2016/08/filter-images-by-category.png)
![Filter images by category Filter images by category](https://www.wpbeginner.com/wp-content/uploads/2016/08/filter-images-by-category.png)
Technique 2: Add Tags to Pictures within the WordPress Media Library
If you wish to add tags to photographs within the media library and permit customers to filter pictures by tag on the entrance finish, then this technique is for you.
Envira Gallery is the very best WordPress picture gallery plugin available on the market. It lets you create lovely and mobile-friendly picture galleries in WordPress.
Envira Gallery comes with a Tags Addon, which helps you to add tags to the pictures in your galleries.
First, you’ll want to set up and activate the Envira Gallery plugin. For extra detailed directions, see our newbie’s information on find out how to set up a WordPress plugin.
Notice: Envira Gallery additionally has a free version. Nevertheless, you’ll want at the least the Plus plan for the plugin to unlock the Tags add-on.
Upon activation, go to the Envira Gallery » Settings web page from the WordPress dashboard to enter your license key.
You may get the important thing out of your account on the Envira Gallery web site.
![Add the Envira Gallery license key Add the Envira Gallery license key](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-envira-license.png)
![Add the Envira Gallery license key Add the Envira Gallery license key](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-envira-license.png)
After that, go to the Envira Gallery » Addons web page from the WordPress dashboard and find the ‘Tags Addon’.
When you try this, merely click on the ‘Set up’ button to unlock the Tags characteristic.
Upon set up, you’ll additionally need to toggle the change to activate the Tags addon.
![Install the Tags addon Install the Tags addon](https://www.wpbeginner.com/wp-content/uploads/2016/08/install-tags-addon.png)
![Install the Tags addon Install the Tags addon](https://www.wpbeginner.com/wp-content/uploads/2016/08/install-tags-addon.png)
Subsequent, you possibly can create a brand new gallery on your WordPress weblog or edit an present one. For this tutorial, we will probably be creating a brand new gallery on your WordPress web site.
To do that, go to the Envira Gallery » Add New web page from the WordPress dashboard. Right here, you can begin by typing a reputation on your gallery.
After that, click on the ‘Choose Recordsdata from Different Sources’ button to start out including pictures out of your media library.
So as to add pictures from the pc, click on the ‘Choose Recordsdata from Your Laptop’ button.
![Add media library images Add media library images](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-media-library-images.png)
![Add media library images Add media library images](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-media-library-images.png)
Upon getting performed that, scroll right down to the ‘At present in your Gallery’ part. From right here, you possibly can configure the gallery format, add a lightbox, create a mobile-responsive gallery, and a lot extra.
For particulars, see our newbie’s information on find out how to create a picture gallery in WordPress.
So as to add tags, merely click on on the pencil icon on a picture.
![Click the pencil icon to edit an image Click the pencil icon to edit an image](https://www.wpbeginner.com/wp-content/uploads/2016/08/click-the-pencil-icon.jpg)
![Click the pencil icon to edit an image Click the pencil icon to edit an image](https://www.wpbeginner.com/wp-content/uploads/2016/08/click-the-pencil-icon.jpg)
It will open the ‘Edit Metadata’ popup on the display screen, the place you possibly can add a title, alt textual content, and caption on your picture.
It’s also possible to add a number of media tags for a picture by separating them with a comma. As soon as you’re performed, don’t neglect to click on the ‘Save Metadata’ button to retailer your settings.
![Add image tags Add image tags](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-image-tags.jpg)
![Add image tags Add image tags](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-image-tags.jpg)
Simply repeat the method so as to add tags to different pictures in your gallery.
Then, change to the ‘Tags’ tab from the left column and examine the ‘Allow Tag Filtering?’ field.
It will enable your customers to filter all of your gallery pictures utilizing the tags.
![Enable tag filtering Enable tag filtering](https://www.wpbeginner.com/wp-content/uploads/2016/08/enable-tag-filtering.png)
![Enable tag filtering Enable tag filtering](https://www.wpbeginner.com/wp-content/uploads/2016/08/enable-tag-filtering.png)
By default, Envira Gallery will create a filter for all of the tags that you’ve added to your gallery.
Nevertheless, if you wish to embody solely particular tags for filtering, then it’s also possible to try this by typing these tags within the ‘Tags to incorporate in Filtering’ possibility.
In case you go away this part clean, then all of the tags will probably be filtered. Subsequent, it’s also possible to select the tag place, allow/disable the ‘All’ tags characteristic, and kind tags based on your liking.
As soon as you’re performed, don’t neglect to click on the ‘Publish’ button on the prime to save lots of your adjustments.
![Choose specific tags for filtering Choose specific tags for filtering](https://www.wpbeginner.com/wp-content/uploads/2016/08/choose-tags-for-filter.png)
![Choose specific tags for filtering Choose specific tags for filtering](https://www.wpbeginner.com/wp-content/uploads/2016/08/choose-tags-for-filter.png)
You and customers will now be capable to use tags to filter pictures in your web site.
Filtering by Tag within the Media Library
To filter pictures utilizing tags within the WordPress dashboard, go to the Media » Envira Tags web page from the admin sidebar.
Right here, you’ll discover all of the tags that you’ve created are listed on the left, and the variety of pictures with that tag is listed within the ‘Merchandise’ column.
To search out the pictures which have a particular tag, merely click on on the ‘Gadgets’ quantity for that tag.
For instance, to seek out all the pictures with the tag ‘structure’, you’ll have to click on the ‘1’ quantity within the structure tag row.
![Tag filtering on WordPress dashboard Tag filtering on WordPress dashboard](https://www.wpbeginner.com/wp-content/uploads/2016/08/tags-filtering-in-backend.png)
![Tag filtering on WordPress dashboard Tag filtering on WordPress dashboard](https://www.wpbeginner.com/wp-content/uploads/2016/08/tags-filtering-in-backend.png)
It will open all the pictures with that tag within the media library.
This manner, you don’t have to look via all of your pictures to seek out those you’re in search of.
![Tag filtering image results Tag filtering image results](https://www.wpbeginner.com/wp-content/uploads/2016/08/tag-filtering-results-1.png)
![Tag filtering image results Tag filtering image results](https://www.wpbeginner.com/wp-content/uploads/2016/08/tag-filtering-results-1.png)
Filtering by Tag on the Entrance Finish
With Envira Gallery, customers visiting your web site can even filter pictures primarily based on their tags.
Remember the fact that this characteristic will solely work you probably have checked the ‘Allow Tag Filtering?’ field for the gallery settings.
To allow this characteristic, you have to first add the gallery you created to your web site. For this, open the WordPress web page/submit within the content material editor and click on the add block ‘+’ button.
As soon as the block menu opens up, add the Envira Gallery block to the web page/submit after which choose the gallery you created from the dropdown menu within the block itself.
![Add envira gallery block Add envira gallery block](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-envira-block.png)
![Add envira gallery block Add envira gallery block](https://www.wpbeginner.com/wp-content/uploads/2016/08/add-envira-block.png)
Lastly, click on the ‘Replace’ or ‘Publish’ button to retailer your settings.
Now, you possibly can go to your WordPress web site to view the picture gallery, the place you’ll discover tags for filtering on the prime of the pictures.
As soon as a consumer clicks on a tag, solely pictures with that particular tag will probably be displayed within the gallery.
![Tags filter preview Tags filter preview](https://www.wpbeginner.com/wp-content/uploads/2016/08/tags-filter-preview-1.jpg)
![Tags filter preview Tags filter preview](https://www.wpbeginner.com/wp-content/uploads/2016/08/tags-filter-preview-1.jpg)
Bonus: Stop Picture Theft in WordPress
As a photographer or designer, utilizing classes and tags may also help you set up and show your pictures in your WordPress web site. Nevertheless, you could be anxious about different individuals stealing your photographs.
That is known as picture theft, which is the unauthorized use of your pictures on different web sites.
It’s a frequent drawback for photographers and graphic designers as a result of although non-copyrighted picture theft is unethical, it isn’t unlawful. This implies anybody can copy and promote your pictures as their very own.
Nevertheless, there are a number of methods that you should utilize to forestall picture theft in your WordPress weblog.
The very first thing that you need to do is disable right-click in your pictures. It will shield your copyright and stop customers from simply saving your pictures on their desktops.
It’s also possible to add a watermark to your pictures. Many inventory images web sites use this technique, which lets you promote your pictures whereas defending them from being stolen.
To create watermarks on your pictures, you’ll have to obtain the Watermark addon from Envira Gallery.
It’s the simplest way so as to add watermarks with out utilizing any customized code. For particulars, see our tutorial on find out how to routinely add a watermark to photographs in WordPress.
![Add watermark to image gallery Add watermark to image gallery](https://www.wpbeginner.com/wp-content/uploads/2016/08/watermarked-images-preview-1.jpg)
![Add watermark to image gallery Add watermark to image gallery](https://www.wpbeginner.com/wp-content/uploads/2016/08/watermarked-images-preview-1.jpg)
Different steps you possibly can take to guard your pictures embody registering your copyright, utilizing a digital signature, and together with hidden foreground layers.
To study extra recommendations on defending your web site from picture theft, see our newbie’s information on methods to forestall picture theft in WordPress.
We hope this text helped you learn to add classes and tags to the WordPress media library. You might also wish to see our information on find out how to discover royalty-free pictures on your WordPress weblog posts and our picks for the very best WordPress slider plugins.
In case you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. It’s also possible to discover us on Twitter and Facebook.
Leave a comment