# Author name plus avatar

**URL:** https://meta.discourse.org/t/author-name-plus-avatar/225337
**Category:** Development
**Created:** [April 26, 2022, 4:14pm UTC](https://meta.discourse.org/t/author-name-plus-avatar/225337 "2022-04-26T16:14:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [August 16, 2022, 4:10pm UTC](https://meta.discourse.org/t/author-name-plus-avatar/225337/2 "2022-08-16T16:10:23Z")

</div>

Hello Mike,

[Sam’s Simple Theme](https://meta.discourse.org/t/sams-simple-theme/23552) is overriding the topic-list template and only shows the latest posters not the authors. Here a really cool guide how to [override](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#overriding-discourse-templates-23) template.

There are 2 templates in core what we should override for this.

1. [https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/templates/topic-list-header.hbr](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/templates/topic-list-header.hbr)  
`topic-list-header` to modify the header section.

2. [https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/templates/list/topic-list-item.hbr](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/templates/list/topic-list-item.hbr)  
`topic-list-item` to modify the avatar and add username.

* * *

You can find all templates in here: [https://github.com/discourse/discourse/tree/main/app/assets/javascripts/discourse/app/templates](https://github.com/discourse/discourse/tree/main/app/assets/javascripts/discourse/app/templates)

Let’s start 🔽

Actually I made a theme component to present it easier. You can use it if you want. 🙂  
[https://github.com/VaperinaDEV/discourse-custom-user-column](https://github.com/VaperinaDEV/discourse-custom-user-column)

You can select from two columns with settings.  
By default it show the last post but you can change it to show authors.

 ![Screenshot 2022-08-16 at 17.00.54](https://global.discourse-cdn.com/meta/original/4X/2/a/8/2a877d85c5359dda8edd2809e95a95f1db7146fe.png)

**Topic list header**  
Firstly we have to modify the column header.

I added these lines and removes posters and views and activity column header.

> <https://github.com/VaperinaDEV/discourse-custom-user-column/blob/438529e70d03352296d13d6d46b20769f7cbf845/javascripts/discourse/templates/topic-list-header.hbr#L17-L22>

This is add the header **Last Post** or **Author**  
Last Post  
 ![Screenshot 2022-08-16 at 17.03.19](https://global.discourse-cdn.com/meta/optimized/4X/e/0/f/e0f77f164902d858ba9a903baffb64dc1f64e393_2_690x35.png)  
Author  
 ![Screenshot 2022-08-16 at 17.23.35](https://global.discourse-cdn.com/meta/optimized/4X/e/e/c/eec6a533d33baf392333ba00c58f450961f1e4d3_2_690x34.png)

I’ve also added a locale file to translate these…  
You can translate here 🔽

 ![Screenshot 2022-08-16 at 17.05.07](https://global.discourse-cdn.com/meta/original/4X/e/2/9/e29b4ddcdf857718825ae42a7aae848b991c58e3.png)

* * *

**Topic list item**

I removed the posters column and add the Last Post or Author column.

Last Post Column

 ![Screenshot 2022-08-16 at 17.02.36](https://global.discourse-cdn.com/meta/original/4X/2/9/5/295fd122500ed55cb74a48c59f90ef55526ac555.png)

Authors Column with (topic creation) time.

 ![Screenshot 2022-08-16 at 17.15.06](https://global.discourse-cdn.com/meta/original/4X/f/b/e/fbe2f07b2ce3ab4723cf1bd6aef42c938d924366.png)

> <https://github.com/VaperinaDEV/discourse-custom-user-column/blob/215b70d13145477d9a9881868dc33c0d2e420a89/javascripts/discourse/templates/list/topic-list-item.hbr#L65-L86>

* * *

Finally add some CSS.

> <https://github.com/VaperinaDEV/discourse-custom-user-column/blob/main/desktop/desktop.scss>

* * *

Hope it helps! You can compare with the core templates or if you use any custom templates and change or use the component if it fits your needs. 🙂

---

_[View the full topic](https://meta.discourse.org/t/author-name-plus-avatar/225337)._
