# Hide 'Create Topic' on home page?

**URL:** https://meta.discourse.org/t/hide-create-topic-on-home-page/51732
**Category:** Development
**Tags:** css
**Created:** [October 19, 2016, 11:46am UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732 "2016-10-19T11:46:33Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![GSeven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gseven/32/61731_2.png) [@GSeven](https://meta.discourse.org/u/GSeven)
#### Post date: [October 19, 2016, 11:46am UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/1 "2016-10-19T11:46:33Z")

</div>

Is it possible to hide the ‘create topic’ button on the home page?

i would like my users to navigate to the appropriate category/subcategory before posting a topic, because then the correct category option is automatically placed in the composer, instead of having to scroll through what will be hundreds of categories and subcategories in the drop down menu looking for the right one.

Does anybody know how to do this please?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [October 19, 2016, 11:56am UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/2 "2016-10-19T11:56:58Z")

</div>

Try this CSS Rule

```plaintext
body:not([class*='category-']) #create-topic {
    display: none;
}

```

It will only let the create-topic button appear on category pages.

---

<div class="post-metadata">

### Author: ![GSeven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gseven/32/61731_2.png) [@GSeven](https://meta.discourse.org/u/GSeven)
#### Post date: [October 19, 2016, 11:59am UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/3 "2016-10-19T11:59:47Z")

</div>

Yes cpradio, absolutely perfect, top notch support.

many thanks.

---

<div class="post-metadata">

### Author: ![GSeven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gseven/32/61731_2.png) [@GSeven](https://meta.discourse.org/u/GSeven)
#### Post date: [October 19, 2016, 12:10pm UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/4 "2016-10-19T12:10:53Z")

</div>

actually, can the code be tweeked to show the ‘create topic’ button also in category\>subcategory\>tag?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [October 19, 2016, 12:30pm UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/5 "2016-10-19T12:30:16Z")

</div>

Just to confirm, you have show filter by tag enabled?

---

<div class="post-metadata">

### Author: ![GSeven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gseven/32/61731_2.png) [@GSeven](https://meta.discourse.org/u/GSeven)
#### Post date: [October 19, 2016, 12:33pm UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/6 "2016-10-19T12:33:53Z")

</div>

i do indeed have it enabled.

so when someone goes to service(category)\>county(subcategory)\>town(tag) the create topic button is shown.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [October 19, 2016, 12:34pm UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/7 "2016-10-19T12:34:26Z")

</div>

K, this is what you will want then

```plaintext
body:not([class*='category-']) #create-topic {
    display: none;
}

body.tags-page #create-topic {
    display: block;
}

```

---

<div class="post-metadata">

### Author: ![GSeven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gseven/32/61731_2.png) [@GSeven](https://meta.discourse.org/u/GSeven)
#### Post date: [October 19, 2016, 12:39pm UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/8 "2016-10-19T12:39:23Z")

</div>

Yes, The ‘create topic’ button now shows up on the page when a tag is selected.

absolute genius. i love you guys.

This populates the composer with the correct category and the correct tag.

👍

---

<div class="post-metadata">

### Author: ![mstm](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mstm](https://meta.discourse.org/u/mstm)
#### Post date: [April 7, 2021, 10:16am UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/9 "2021-04-07T10:16:40Z")

</div>

Thanks also from me @cpradio, it would be great as a feature.  
Unfortunately it doesn’t work with mobile devices 😔

---

<div class="post-metadata">

### Author: ![mstm](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mstm](https://meta.discourse.org/u/mstm)
#### Post date: [April 7, 2021, 4:20pm UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/10 "2021-04-07T16:20:17Z")

</div>

I have tried everything but I don’t understand how to hide “Create Topic” with mobile devices.  
With small displays it is difficult to browse categories and tags, this #Contribute > Feature would help a lot, why not add an option to the menu? 😃

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [April 7, 2021, 5:03pm UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/11 "2021-04-07T17:03:34Z")

</div>

> [@mstm](#):
>
> I have tried everything but I don’t understand how to hide “Create Topic” with mobile devices.

You can use your browser’s Style Inspector. It shows that the declaration is overwritten by a more specific one on mobile:

 ![Screenshot from 2021-04-07 18-57-16](https://global.discourse-cdn.com/meta/original/3X/e/4/e495df75094f9cb19ced68a8d149f2e12e849a1d.png)

So you can either use the more specific declaration for mobile yourself:

```plaintext
body:not([class*="category-"]) .list-controls .container #create-topic {
    display: none;
}

```

Or give your general declaration priority with the !important property:

```plaintext
body:not([class*="category-"]) #create-topic {
    display: none !important;
}

```

---

<div class="post-metadata">

### Author: ![mstm](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mstm](https://meta.discourse.org/u/mstm)
#### Post date: [April 7, 2021, 5:23pm UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/12 "2021-04-07T17:23:23Z")

</div>

Thanks @manuel I used the !important property and it works perfectly!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 14, 2023, 11:15am UTC](https://meta.discourse.org/t/hide-create-topic-on-home-page/51732/13 "2023-11-14T11:15:01Z")

</div>


