# 0 likes in latest section

**URL:** https://meta.discourse.org/t/0-likes-in-latest-section/168623
**Category:** Support
**Created:** [October 29, 2020, 11:20am UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623 "2020-10-29T11:20:39Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![CommunityJ](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@CommunityJ](https://meta.discourse.org/u/CommunityJ)
#### Post date: [October 29, 2020, 11:20am UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623/1 "2020-10-29T11:20:39Z")

</div>

Im an employee at Jupiter.community ([Categories - Jupiter Community](https://community.jupiter.money/categories)). In the latest section, if a post has 0 likes, there is an empty blank. How do I make it so that it shows a physical number 0 with the like icon? [eg: Look at “Cost of living in Pune” post in screenshot, I want it to show 0 likes]

 ![Screen Shot 2020-10-29 at 4.47.04 PM](https://global.discourse-cdn.com/meta/original/3X/e/c/eceb06ead33f90481a1baffd0242d72351b4fc73.png)

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [October 29, 2020, 11:31am UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623/2 "2020-10-29T11:31:56Z")

</div>

Did you using any theme component to add the like column? I think it because the Javascript from the theme component eval the like cout 0 to false.

---

<div class="post-metadata">

### Author: ![CommunityJ](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@CommunityJ](https://meta.discourse.org/u/CommunityJ)
#### Post date: [October 29, 2020, 11:59am UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623/3 "2020-10-29T11:59:02Z")

</div>

Yes, I used this theme component - [GitHub - discourse/discourse-like-column: Add the Like column to the /latest homepage · GitHub](https://github.com/discourse/discourse-like-column)

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [October 29, 2020, 12:19pm UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623/4 "2020-10-29T12:19:47Z")

</div>

It seems Discourse only show Likes greater than 0 by design, you need to reopen the the `topic-list-item` component class then replace the `hasLikes` function that eval to true when likes count is 0.

> <https://github.com/discourse/discourse/blob/d10b6dc498c2537a3de273e0fa213df4a9a12f0b/app/assets/javascripts/discourse/app/components/topic-list-item.js#L154-L156>

> <https://github.com/discourse/discourse/blob/d10b6dc498c2537a3de273e0fa213df4a9a12f0b/app/assets/javascripts/discourse/app/templates/list/topic-list-item.hbr#L55-L59>

---

<div class="post-metadata">

### Author: ![CommunityJ](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@CommunityJ](https://meta.discourse.org/u/CommunityJ)
#### Post date: [October 29, 2020, 12:54pm UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623/5 "2020-10-29T12:54:39Z")

</div>

I don’t have a component called topic-list-item installed

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [October 29, 2020, 12:58pm UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623/6 "2020-10-29T12:58:02Z")

</div>

Yes, it build in the Discourse core. You may need to know more about it

> [@Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648):
>
> Discourse Themes and Theme Components can be used to customize the look, feel and functionality of Discourse’s frontend. This section of the developer guides aims to provide all the reference materials you need to develop simple themes for a single site, right up to complex open-source theme components. This introduction aims to provide a map of all the tools and APIs for theme development. If you prefer a step-by-step tutorial for theme development, jump straight to: Themes vs. Theme Compon…

---

<div class="post-metadata">

### Author: ![CommunityJ](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@CommunityJ](https://meta.discourse.org/u/CommunityJ)
#### Post date: [October 30, 2020, 10:09am UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623/7 "2020-10-30T10:09:16Z")

</div>

I couldn’t find out much about changing Discourse core components in this link, where else can I understand this better?

---

<div class="post-metadata">

### Author: ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)
#### Post date: [October 30, 2020, 10:36am UTC](https://meta.discourse.org/t/0-likes-in-latest-section/168623/8 "2020-10-30T10:36:47Z")

</div>

You miss the [modifyClass()](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-c-4) function.
