> For the complete documentation index, see [llms.txt](https://helpdesk.ldtsoft.work/ldt-online-course/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpdesk.ldtsoft.work/ldt-online-course/build-your-course/how-to-organise-courses-with-categories.md).

# How to organise courses with categories

Group your courses with categories and sub-categories, and choose whether a parent category shows its children's courses

Categories group your courses in a tree, and one course can carry several. Each category decides whether it also shows the courses of its sub-categories.

### 1. Open the Categories page

In Shopify admin, open **Apps** → **LDT Online Courses** → **Courses**, then click **Categories** in the action bar of the Courses page.

![Opening the Categories page from the Courses action bar](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-707ba0070be7dbd12bffc5c66c4d002a54baaacb%2Fhow-to-organise-courses-with-categories-step-1.png?alt=media)

### 2. Add a category, or a sub-category under one

The tree is on the left, the form on the right. Type a name in **Category name**, pick a **Parent category** to nest it (leave **None (top level)** for a main category), then click **Save** on the **Unsaved changes** bar. **Add sub-category** opens the same form with the parent already filled in. A category can sit three levels deep — *Yoga* → *Beginner* → *Morning*.

![Adding a sub-category under a parent category](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-6bc46adf01d15680fda9c046bd46872abcdcd3ac%2Fhow-to-organise-courses-with-categories-step-2.png?alt=media)

### 3. Read what each category holds

The book icon next to a row is the number of courses in that category. It counts courses attached **directly** to that category, unless you turn on **Include courses from sub-categories** (next step) — then the number covers the whole branch and a course in both a parent and a sub-category is counted once.

![Reading the course count on each category row](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-ac0b190ee1c0f3a9431207d0d22a7f554ae4dfbb%2Fhow-to-organise-courses-with-categories-step-3.png?alt=media)

### 4. Let a parent category include its sub-categories

Select a category that has sub-categories, turn on **Include courses from sub-categories**, then click **Save**. On your storefront that category now shows its own courses **plus** every course in its sub-categories, so shoppers reach them from one tab. With the switch off, a tab shows only the courses that carry that exact category — and a parent with no courses of its own is not shown as a tab at all. The switch only appears for a category that already has sub-categories.

![Turning on Include courses from sub-categories](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-2c927693067c7584a2d2d6066d0ae583c8a46a46%2Fhow-to-organise-courses-with-categories-step-4.png?alt=media)

### 5. Put a course into categories

Open the course (**Courses** → the course) and use the **Categories** field of **Course information**. The tree opens as soon as you click the box: open a sub-category with its arrow, tick as many categories as you need, or type in the box to filter the tree. The chips under the box are what the course carries — click the **x** on a chip to remove it. A name that does not exist yet offers **Add category: `<name>`**, which creates a main category. Save the course on the **Unsaved changes** bar.

![Ticking several categories in the course Categories field](https://3532245007-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuRJ3j93eHyen8t2flj5y%2Fuploads%2Fgit-blob-c09de82a51195cf656f2ac6e870df5d3480e0e12%2Fhow-to-organise-courses-with-categories-step-5.png?alt=media)

You can also rename a category, change its parent (it moves to the end of that level), or drag rows to reorder them inside their own level.

### Result

Your courses are grouped in a tree you control, each row shows how many courses it holds, a course can carry several categories, and each parent decides whether its tab also covers its sub-categories.

### Troubleshooting

* **Two categories have the same name under the same parent.** That is refused — rename one of them. The same name in two different branches is allowed.
* **A parent category is missing from my storefront tabs.** It holds no course of its own and **Include courses from sub-categories** is off, so its tab would be empty. Turn the switch on.
* **The Include courses from sub-categories switch is not there.** The category has no sub-categories yet — add one first.
* **I cannot delete a category.** A category with sub-categories cannot be deleted; move or delete the sub-categories first.
* **A course disappeared from a storefront tab.** With the switch off, that tab only lists courses carrying that exact category; the others sit under their own category.
* **I want to reorder courses, not categories.** Use **Sort courses** in the action bar of the Courses page; categories are reordered by dragging their rows.

### Related pages

* [Create and sell your first course](https://helpdesk.ldtsoft.work/ldt-online-course/start-here/readme.md)
* [Optimizing the Learning Experience: How to Structure Your Course on LDT Online Courses](https://helpdesk.ldtsoft.work/ldt-online-course/build-your-course/optimizing-the-learning-experience-how-to-structure-your-course-on-ldt-online-courses.md)
* [How to Duplicate a Course](https://helpdesk.ldtsoft.work/ldt-online-course/build-your-course/how-to-duplicate-a-course.md)
