Menu Close

Get Support From ShopWired Close

All systems fully operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Available from 8.00am to 6.00pm (EST) Quickest response time
Send A Message
Response within 24 hours

Menu Close

Menu

parent_category

The parent_category.twig view is used to display the subcategories that belong to a particular category.


In most circumstances, this page will extend the collection.twig template because it's format will follow the usual display of collection pages on your theme.

The parent category view has access to the category object to display details about the current category being viewed (such as the category name and description).

The parent category view has access to the category object to display details about the categories it contains (such as the category name, image and description) with a link through to the category page, e.g.

{% for category in categories %}
    <a href="{{ category.url }}">
        {{ category.title }}
    </a>
{% endfor %}