# Right procedure to display likes (or anyother) column in the main page

**URL:** <https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004>\
**Category:** Support\
**Created:** [2015年五月19日 19:55 UTC](https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004 "2015-05-19T19:55:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![raul\_pareja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raul_pareja/32/41851_2.png) [@raul\_pareja](https://meta.discourse.org/u/raul_pareja)\
**Post date:** [2015年五月19日 19:55 UTC](https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004/1 "2015-05-19T19:55:02Z")

</div>

Hi,

Sorry guys for most likely an obvious question here, but I got confused with what is the right procedure to display the likes column in the main discourse page.

Right now it shows Category Users Replies Views and Activity, well actually I just want to add the likes column there, only this, so the users are free to sort it by likes (actually they requested me to enable this feature).

I have been reading related topics but I want to do just he opposite of hiding anything, and I have seen also the query string that works which is domain.name/?order=likes, so once I go to Admin → Customize → CSS/HTML → new … what do I have to type here, just a CSS snippet or do I need to run a script in the section?

- In case of the CSS, what do I have to type in the display section of  
the **.topic-list .num.likes**?
- In case of the script section, is there any documentation regarding  
the objects and methods like **Discourse.NavItem** or show some easy example?

As always any help will be more than wellcome.

Thanks!

---

<div class="post-metadata">

**Author:** ![Qasem\_h](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qasem_h/32/155935_2.png) [@Qasem\_h](https://meta.discourse.org/u/Qasem_h)\
**Post date:** [2015年五月19日 20:00 UTC](https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004/2 "2015-05-19T20:00:39Z")

</div>

Read this  
[https://meta.discourse.org/t/does-anyone-actually-like-the-likes-column/18397](https://meta.discourse.org/t/does-anyone-actually-like-the-likes-column/18397)

---

<div class="post-metadata">

**Author:** ![raul\_pareja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raul_pareja/32/41851_2.png) [@raul\_pareja](https://meta.discourse.org/u/raul_pareja)\
**Post date:** [2015年五月19日 20:04 UTC](https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004/3 "2015-05-19T20:04:59Z")

</div>

Hi I already read this before Qasem,

But as you can understand it does not help here, as I said in the post above enabling this feature is a request of our internal users that use discourse, no need or aim to discuss if it is good or bad which of course is a personal taste and out of the scope that I wanted to cover

Cheers

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年五月20日 00:00 UTC](https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004/4 "2015-05-20T00:00:46Z")

</div>

in `</body>`

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

```

should do the trick.

---

<div class="post-metadata">

**Author:** ![raul\_pareja](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/raul_pareja/32/41851_2.png) [@raul\_pareja](https://meta.discourse.org/u/raul_pareja)\
**Post date:** [2015年五月20日 07:41 UTC](https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004/5 "2015-05-20T07:41:18Z")

</div>

Thanks a lot @sam, it is working fine now

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2015年五月20日 07:48 UTC](https://meta.discourse.org/t/right-procedure-to-display-likes-or-anyother-column-in-the-main-page/29004/6 "2015-05-20T07:48:35Z")

</div>


