# Right procedure to enable/disable likes column in the main page (2)

**URL:** https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039
**Category:** Support
**Created:** [1 januari 2017 om 23:49 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039 "2017-01-01T23:49:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Sung\_Kim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sung_kim/32/65739_2.png) [@Sung\_Kim](https://meta.discourse.org/u/Sung_Kim)
#### Post date: [1 januari 2017 om 23:49 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039/1 "2017-01-01T23:49:17Z")

</div>

I read the previous topic, [Right procedure to display likes (or anyother) column in the main page](https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004). I also want to have the likes column in the main page.

The solution was also provided by @sam. Adding this:

```
 <script>
 Discourse.TopicListComponent.reopen({
     showLikes: true
});
</script>

```

However, it does not work in my installation (version v1.7.0.beta11 +31). Do we have other solutions?

In addition, I’d like to disable Views column in the main page. I changed the script to:

```
 <script>
 Discourse.TopicListComponent.reopen({
     showLikes: true,
     showViews: false
 });
 </script>

```

But it does not work. Any right procedure for that?

I really think we should have a simple menu to turn on/off columns in the main menu.

---

<div class="post-metadata">

### Author: ![Sung\_Kim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sung_kim/32/65739_2.png) [@Sung\_Kim](https://meta.discourse.org/u/Sung_Kim)
#### Post date: [2 januari 2017 om 05:38 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039/2 "2017-01-02T05:38:10Z")

</div>

From another topic, I figured:

```
<script>
var TopicListComponent = require('discourse/components/topic-list').default;
TopicListComponent.reopen({
    showLikes: true
});
</script>

```

I was wondering how to turn off some columns? showViews: false still does not work.

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [2 januari 2017 om 12:41 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039/3 "2017-01-02T12:41:29Z")

</div>

You don’t need a script to **hide** columns, just some Css to add

```
.topic-list .views {
    display: none;
}

```

---

<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: [15 april 2019 om 15:45 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039/4 "2019-04-15T15:45:04Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [15 april 2019 om 23:24 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039/5 "2019-04-15T23:24:29Z")

</div>

Do we have an updated topic / playbook on this for people who want the likes column on Discourse latest @dax?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [30 april 2019 om 09:44 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039/7 "2019-04-30T09:44:07Z")

</div>

Now we have a dedicated theme component to make things very easy for all our users:

> [@Add Likes Column](https://meta.discourse.org/t/add-the-like-column/116416):
>
> discourse2Summary Add Likes Column adds a dedicated column for Likes to the Latest page of your site.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/add-like-column)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-like-column](https://github.com/discourse/discourse-like-column)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features Samples Before: After: discourse2 Hosted by us? Theme components are available …

---

<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: [16 augustus 2022 om 15:08 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039/8 "2022-08-16T15:08:44Z")

</div>



---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [16 augustus 2022 om 15:09 UTC](https://meta.discourse.org/t/right-procedure-to-enable-disable-likes-column-in-the-main-page-2/55039/9 "2022-08-16T15:09:23Z")

</div>


