# Show Only Categories on Mobile View

**URL:** https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927
**Category:** Support
**Tags:** mobile
**Created:** [December 22, 2024, 5:13pm UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927 "2024-12-22T17:13:05Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![BrianC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianc/32/487568_2.png) [@BrianC](https://meta.discourse.org/u/BrianC)
#### Post date: [December 22, 2024, 5:13pm UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/1 "2024-12-22T17:13:05Z")

</div>

Hello all,

When viewing All Categories on mobile, there are a few topics displayed above the post titles, which are shown under the category they belong to. I am using both Categories and Sub-Categories. In the admin panel, there is an option to show Categories Only, but this does not affect the mobile view. How can I configure it to show Categories Only on the mobile view?

 ![A settings page with options for desktop category page style, tag style, lazy YouTube loading, anonymous posting, and category group moderation. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/2/3/523006f2ce4bff9a058c9cf5ffbb23bb4ff85953.png)

---

<div class="post-metadata">

### Author: ![MihirR](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mihirr/32/475158_2.png) [@MihirR](https://meta.discourse.org/u/MihirR)
#### Post date: [December 22, 2024, 5:24pm UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/2 "2024-12-22T17:24:14Z")

</div>

If you want to hide the topic list below the category specifically on mobile, you can do this by going to the **Edit HTML/CSS** section and adding the following under the Mobile tab:

```plaintext
.category-list-item tr.category-topic-link {
    display: none;
}

```

* * *

_If you’re unsure how to edit the HTML/CSS, you can visit `https://yourdiscoursedomain.com/admin/customize/components`. Click on **Install** , then **+ Create New**. Name it anything, set the type to **Component** , and then open the file you created. On the right, you will find the option to **Edit HTML/CSS**._

_Also, make sure to enable that component for your theme. For more details, you can visit [Making Custom CSS Changes on Your Site](https://meta.discourse.org/t/making-custom-css-changes-on-your-site/168101)._

---

<div class="post-metadata">

### Author: ![BrianC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianc/32/487568_2.png) [@BrianC](https://meta.discourse.org/u/BrianC)
#### Post date: [December 22, 2024, 9:48pm UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/3 "2024-12-22T21:48:31Z")

</div>

> [@MihirR](#):
>
> ```plaintext
> .category-list-item tr.category-topic-link {
> display: none;
> }
> 
> ```

Works like a charm! It makes my mobile categories page beautiful. Appreciate your guidance.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [December 22, 2024, 11:33pm UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/4 "2024-12-22T23:33:01Z")

</div>

Bad news are, of course, it overrides what users want and like.

---

<div class="post-metadata">

### Author: ![BrianC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianc/32/487568_2.png) [@BrianC](https://meta.discourse.org/u/BrianC)
#### Post date: [December 22, 2024, 11:47pm UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/5 "2024-12-22T23:47:39Z")

</div>

@Jagster please help me understand that statement? The option in Discourse for displaying Categories Only does not display any Topics in desktop but in Mobile they remain. Not sure why it isn’t for both. Why do you say this is what the user’s want? In mobile it looks messy and takes up a lot of space and makes seeing the available categories more difficult. I have 16 categories with about 80 sub-categories. Curious for your perspective.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [December 23, 2024, 7:33am UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/6 "2024-12-23T07:33:43Z")

</div>

Messiness is only your opinion, and I could name quite a few people who prefer it this way. The main point is that you took an option away from users just because **you** wanted something. Similar things include forced dark mode, font size, and so on.

Using mobiles is fundamentally different from using desktops.

BTW, my category view shows topics as well. Not just plain categories.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [December 23, 2024, 8:32am UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/7 "2024-12-23T08:32:47Z")

</div>

> [@Jagster](#):
>
> The main point is that you took an option away from users just because **you** wanted something.

Which option was taken away? I know you can choose a homepage in your preferences, but I am not aware of a setting to choose the style of the /categories page.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [December 23, 2024, 8:55am UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/8 "2024-12-23T08:55:45Z")

</div>

Seeing latest topics under a category. Just because it looks ugly 🤷‍♂️

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [December 23, 2024, 9:02am UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/9 "2024-12-23T09:02:49Z")

</div>

> [@Jagster](#):
>
> Just because it looks ugly

I think the reason is to make it resemble the desktop version. When the admin chooses “categories only” in the settings, creating the same style on mobile seems like a good idea.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [January 8, 2025, 10:17am UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/10 "2025-01-08T10:17:53Z")

</div>

Recently, a setting to configure the mobile categories page was added. You can now choose “Categories only” for mobile as well.

 ![mobile_category_page_style](https://global.discourse-cdn.com/meta/original/4X/6/b/8/6b8908f2d27437b32b9147654582d52c8a341d40.png)

---

<div class="post-metadata">

### Author: ![BrianC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brianc/32/487568_2.png) [@BrianC](https://meta.discourse.org/u/BrianC)
#### Post date: [January 8, 2025, 12:08pm UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/11 "2025-01-08T12:08:00Z")

</div>

I noticed this last night. Nice option.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 7, 2025, 12:08pm UTC](https://meta.discourse.org/t/show-only-categories-on-mobile-view/343927/12 "2025-02-07T12:08:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
