A sub-category link list, allowing users to quickly see and click into sub-categories.
Before you start this tweak, it's a good idea to run through our preparation checklist below:
- Read through the Getting Started Guide to get a better sense of how the Control Panel, Database and Front End store interact.
- Learn our recommended Simple Workflow. This makes the implementation process as easy as possible.
- Create a new Staging Theme for this tweak. This allows you to preview any changes before they are visible to live customers.
Step 1: Open the Category template
The category template can be found here
Step 2: Add the code into the template
Paste the following code into the template where you would like the element to appear.
[%content_menu content_type:'category' sortby:'sortorder, name' show_empty:'0' category:'[@id@]' start_category:'[@id@]'%] [%param header%] <section class="row" aria-label="Sub-Category Links"> [%/param%] [%param *level_1%] <div class="col-6 col-sm-4"> <i class="fa fa-chevron-right mr-2"></i><a href="[@url@]">[@name@]</a> </div> [%/param%] [%param footer%] <div class="col-12"> <hr> </div> </section> [%/param%] [%/content_menu%]
Customising this Section
More information on how to customise this section can be found within the Content Menu Documentation.