WordPress site owners, bloggers, and SEO experts always try to highlight featured, popular and recent posts on the sidebar. But most of them don’t bother about highlighting categories to sidebar. But categories are also as important as any other posts and pages of a WordPress site. So what we should we do.
As a full-time blogger and SEO content writer, I think we should display categories on the sidebar to get extra attention from the readers. But the question is How to add Categories to Sidebar in WordPress?
Follow the below steps to add categories to the WordPress sidebar with style.
- Step-1. Install PostX.
- Step-2. Turn on Category Addon.
- Step-3. Style Categories with Featured Images and Colors.
- Step-4. Add Taxonomy Blocks to the Sidebar Widget.
- Step-5. Customize the Taxonomy Block.
How to Add Categories to Sidebar in WordPress
As I have already mentioned the steps, now it’s time to explain them. I will not only walk you through displaying categories on the sidebar but also explain how you can style them. So without further ado let’s get started.
Step-1. Install PostX
First of all, we have to install the PostX plugin. It is an all-in-one solution for creating News magazines and any kinds of blogs. It offers numerous features and multiple Gutenberg addons to expand the functionalities of the basic Gutenberg Editor.
Step-2. Turn on Category Addon
After properly installing and activating the PostX plugin, we have to turn on the category addon. It is required for styling the category pages. For that:
- Navigate to PostX.
- Click on Addons.
- Turn on the “Category Addon”
- Click on the setting button.
- Mark Category or Tags or both.
Step-3. Style Categories with Featured Images and Colors
If you are using WordPress for some you should know about the default category edition options. It is only limited to adding to edit title, slug, and add short descriptions. If we install any SEO plugins, it let to optimize the snippet, that’s all.
But what about the featured images and colors? Yes, you read it right you can also add featured images to the categories as blog posts. Not only that, but you can also create a WordPress Category Page template to replace it with the default template using the Builder addon of PostX.
For now, let’s continue stying categories.
- Navigate to the posts section and click on categories.
- Start editing a category.
- Add desired image and color.
- Update the category.
In the same way, you have to add images and colors to all categories of your site. Or, at least the categories that you want to add to the sidebar.
Step-4. Add Taxonomy Blocks to the Sidebar Widget
There are two ways to add a widget to the sidebar. Either you add from the front end or the backend. As we have to do further customization we have to follow the second way. However, you can also do it from the front end for that you need to use the Save Template addon of PostX. To add a widget to the sidebar:
- Navigate Appearance and Click on Widget
- And Start Editing the sidebar section
- Click on the + icon and search for Taxonomy Blocks
After adding the taxonomy blocks you will see that it is displaying the name of the latest categories of your site. However, you can also convert it to a beautiful-looking category grid or list view. How?
Continue reading the next step to understand the full customization possibilities of the taxonomy blocks.
Step-6. Customize the Taxonomy Blocks
PostX offers full customization freedom for all of its blocks. So let me walk you through the customization possibilities.
Ready-made blocks layout and designs
Like all other PostX blocks it also offers some premade layouts and designs by which you can convert the default view to a beautiful category section with specific colors and images. So, we can choose our desired design from this section. Don’t worry if it looks a bit broken. Because we can customize further using the setting section.
From the setting options, we can make the category section exactly how we want. Let me start with the General setting, from here we can increase or increase the number of columns, column gap, and row game. Then we can also hide and unhide the heading, title, excerpt, and post count.
But the most interesting part is the Query setting. From where we can sort categories and tags effortlessly. We can select the query and taxonomy type from the drop-down selection option. Last but not least we can increase or increase the number of taxonomies (categories or tags).
After doing all sorts of customization we have to click on the update button and see how it looks at the front end.
That’s all about adding categories to sidebar in WordPress. I hope now can showcase the categories of your site on the WordPress sidebar effortlessly with style.