Setup blog categories within your Magento 2 shop
Blog categories in Magento 2 are an excellent strategy to streamline blog navigation and arrange your blog posts as per the different criteria. By adding categories to your Magento 2 blog, you can enhance the user experience on your website and make it easier for blog readers to find the content they’re looking for.
Through this article, you will learn how to create blog categories in Magento 2 in order to structure your blog posts.
You can follow the steps given below and create blog categories in Magento 2:
To start adding blog categories in Magento 2, you can first go to CONTENT. Then, BLOG > CATEGORIES. Here, you can go ahead and press the ADD NEW CATEGORY button.
Information about the GENERAL blog category can be specified here.
- ENABLE category
- The CATEGORY TITLE should be added here
- The category can then be added to the PARENT CATEGORY, if you wish to create multilayered categories.
- Set the category’s POSITION in the category tree.
- You should now make a choice about whether to INCLUDE a category to the top navigation menu.
STEP 3: Add a blog category for your content.
It could be a description of the category or some other details you want to share with your blog’s viewers about the specific category.
STEP 4: Set the display options.
- To specify the blog category structure, choose category DISPLAY MODE. Posts, Post Links, Subcategories Links, or Posts & Subcategories Links can all be displayed here.
- Specify the layout for postings in the blog in the section labelled POSTS SORT BY. You have the option of sorting posts by Position, Publish Date, and Title.
- Select the TEMPLATE for the category page of your blog. If you have Blog Extra, you can also choose from 22 more blog themes in addition to Modern (List) and System Settings.
- Choose the number of posts you want to show up on a single category page by setting the POSTS PER PAGE.
Note that if you leave this field blank, the configurations for the blog posts list will be used to determine the number.
In the VISIBLE FOR CUSTOMER GROUPS column, specify which customer groups will have access to the blog category. However, only users of Blog Plus and Blog Extra have access to this feature.
STEP 5: Define the category to which the WEBSITE and STORE VIEW will be allocated.
You can use this feature to have different blog categories on different store views.
Note: You can add alternative tags for blog categories in Magento 2 to prevent issues when going from one store view to another on the blog category page.
STEP 6: Create a new category for META INFORMATION
- Configure the URL KEY that will be applied to the category URL. This field will be automatically generated if you leave it empty.
- Type in your META TITLE, which should not be longer than 50–60 characters. If you leave this space blank , the Category Title will be applied to this space as well.
- You can now list any necessary META KEYWORDS. Please be aware that using Meta Keywords is not advised according to current SEO best practises.
- Enter your META DESCRIPTION, which must not exceed 160 characters. The Content will be used if you leave this field empty.
On this step while configuring blog categories in Magento 2, you can directly add posts to a category. This can be achieved on the category configuration page, in the Posts in Category (Blog Extra) column.
STEP 8: Create the DESIGN and CUSTOME DESIGN UPDATE category on the Magento 2 blog.
- Set the layout of the blog category page under the DESIGN section and add some custom layout XML to the LAYOUT UPDATE XML.
- Configure the blog category CUSTOM DESIGN UPDATE by specifying the NEW THEE, NEW LAYOUT, and NEW LAYOUT UPDATE XML for the blog category as well as the DATA RANGE (from – to) within which a new design will be implemented.
When you finish these configurations for any of the blog categories in Magento 2, do not forget to SAVE the newly made blog category and recheck it on the storefront.
As you may have noticed, some choices regarding blog categories in Magento 2 are exclusive to Blog Plus and Blog Extra. It is important to note though, however, that there are numerous other helpful features available besides the blog templates and customer group restrictions.
To find out more about all the other special features in the Magento store like blog categories in Magento 2, here are a few more articles that you will undoubtedly enjoy.