How To Add Subcategories In Shopify [2024]
Shopify - 3 Day Free Trial - No cc Needed   Free Trial
Detect Shopify Theme

Or go to our Shopify Theme Detector directly

How To Add Subcategories In Shopify

Last modified: October 31, 2023

FAQ
How To Add Subcategories In Shopify
Free Shopify Trial

A collection is a group of products that are determined, by you, to be relevant to one another. For example, t-shirts, pants, socks, hats, etc. By using categories, you can make it easier for your shoppers to find the products they want and easier for you to manage.

However, sometimes, you want to group products into subcategories, which is when categories are grouped into smaller groups (like red t-shirts, blue t-shirts, etc.).

Key Takeaways
1
Structured subcategories improve SEO and enhance the shopping experience.
2
Most themes have a dropdown menu for adding subcategories.
3
Steps in adding subcategories include Logging in, visiting the Collections Page, adding an option, going to the Layout Directory, and saving.
Recommended: 10 Best Good-Looking Shopify Themes
# Name Image
Shopify
Get a Free Custom Shopify Store
1
Galleria
Galleria
2
Booster
Booster
3
Symmetry
Symmetry
4
Empire
Empire
5
Avenue
Avenue
6
Context
Context
7
Boost
Boost
8
Plain
Plain
9
Trademark
Trademark
10
Artisan
Artisan
Show More

Check Your Theme Settings

The first step is to check your theme’s settings. Most have a dropdown menu which allows you to add subcategories to your store. Check the settings with these steps.

Step 1 – Login

Log into your Shopify admin. Then go to your ‘Themes’ page and then find your current theme and click on the ‘Customize’ option. Within this section, look for and click on ‘Collection Page’ in the theme preview.

Step 2 – Collections Page

Within the ‘Collections Page’ tab in the editor, the theme should have an option to filter with tag that will be labeled as ‘Enable Filtering By Product Tag’. Click on the checkbox (if it isn’t already).

You can then click on save.

Step 3 – Add Option

If there’s no option within the theme file, you can add the option through the theme code. To do this, go back to the ‘Themes’ page and on your theme click on the ‘Actions’ option and then ‘Edit Code’.

Step 4 – Layout Directory

Within the layout directory, find the liquid file and click on it. At the bottom of the file find the tag and paste the following code just before that tag.

<script>
/* Product Tag Filters – Good for any number of filters on any type of collection pages */
var collFilters = jQuery(‘.coll-filter’);
collFilters.change(function() {
var newTags = [];
collFilters.each(function() {
if (jQuery(this).val()) {
newTags.push(jQuery(this).val());
}
});
if (newTags.length) {
var query = newTags.join(‘+’);
window.location.href = jQuery(‘{{ ‘tag’ | link_to_tag: ‘tag’ }}’).attr(‘href’).replace(‘/’ + ‘tag’, ‘/’ + query);
}
else {
{% if collection.handle %}
window.location.href = ‘/collections/{{ collection.handle }}’;
{% elsif collection.products.first.type == collection.title %}
window.location.href = ‘{{ collection.title | url_for_type }}’;
{% elsif collection.products.first.vendor == collection.title %}
window.location.href = ‘{{ collection.title | url_for_vendor }}’;
{% endif %}
}
});
</script>

Step 5 – Save

When you’ve finished, click on ‘Save’. The option to add subcategories to your products should now be available within your theme.

Keep Reading

Enhancing Subcategory Creation in Shopify

Understanding Shopify’s Collection System

Shopify’s default setup doesn’t have a direct subcategory feature. Instead, it uses collections, which act as categories.

However, these collections lack a hierarchical structure. To create a semblance of subcategories, you can use the navigation menu and some theme tweaks.

Steps to Create Subcategories

Start by creating a main category, like “Dog Toys.” Use the rearrange feature to drag desired subcategories under this main category. If you need further divisions, you can even set up sub-subcategories.

For a more visual approach, consider using the theme editor. Here, you can create templates that display your subcollections.

This method enhances the user experience by grouping related products together, making navigation more intuitive.

Benefits of Organized Subcategories

Well-structured subcategories offer multiple advantages. They improve SEO by clustering related content, which search engines favor.

They also enhance the shopping experience by making product searches more straightforward and logical for customers.

Strategies in Subcategory Addition in Shopify

Plan Before Implementation

Before diving into the process, it’s essential to have a clear strategy. Determine the main categories and potential subcategories.

Sketching a visual representation or a flowchart can help visualize the structure and ensure no category is overlooked.

Consistency is Key

Maintain a consistent naming convention for categories and subcategories. This not only aids in organization but also ensures that customers can easily understand and navigate the store.

For instance, if using singular terms for main categories, ensure subcategories follow the same pattern.

Test and Iterate

After setting up subcategories, it’s crucial to test the user experience. Navigate the store as a customer would. If any part of the process feels clunky or unintuitive, make the necessary adjustments.

Regularly revisiting and refining the subcategory structure can lead to a more streamlined shopping experience.

Monitor Analytics

Use Shopify’s in-built analytics or third-party tools to monitor how customers interact with the subcategories.

Tracking metrics like click-through rates on subcategory links or time spent on subcategory pages can provide insights into what’s working and what might need adjustment.

Advanced Techniques for Subcategories

Using Navigation Menus

One way to simulate subcategories is through the navigation menu. Add a menu item, then nest another option under it by dragging it to the right. This creates a dropdown effect, giving the appearance of subcategories.

Employing Pages for Subcollections

Create a page template that showcases all collections. Add a multi-column section to this page, linking it to a collection list. This method, while not perfect, offers a structured way for customers to navigate your store.

Radio Buttons for Collection Pages

If you prefer radio buttons over dropdown menus, Shopify allows this too. By adding specific code to your theme, you can display collections as radio buttons, offering another way for customers to navigate your product range.

Conclusion: How To Add Subcategories In Shopify

Categories are a great way to help your site be easier to navigate. This can help with SEO and improve conversions on your website.

FAQs
  • Can I add multiple levels of subcategories in Shopify?

    While Shopify primarily supports one level of categorization through collections, you can create an illusion of multi-level subcategories using link lists, menus, and clever naming conventions. However, this might require some manual organization and potentially some theme customization.

  • How do I rearrange the order of my subcategories?

    In Shopify, you can rearrange the order of your collections (subcategories) by going to the “Collections” section and manually dragging them to your desired order. Alternatively, you can also set an automated sort order based on conditions like product title, price, or date added.

  • Is there a limit to the number of subcategories I can add?

    Shopify does not impose a strict limit on the number of collections (subcategories) you can create. However, for usability and navigation purposes, it’s advisable not to overwhelm your customers with too many categories.

Got Something To Say?

Your email address will not be published. Required fields are marked *