# How to display full name in comments embeds

**URL:** https://meta.discourse.org/t/how-to-display-full-name-in-comments-embeds/228020
**Category:** Development
**Created:** [May 24, 2022, 10:45pm UTC](https://meta.discourse.org/t/how-to-display-full-name-in-comments-embeds/228020 "2022-05-24T22:45:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [May 24, 2022, 10:45pm UTC](https://meta.discourse.org/t/how-to-display-full-name-in-comments-embeds/228020/1 "2022-05-24T22:45:14Z")

</div>

In the embedded topics iframe, the user’s username is displayed instead of the full name. I have configured all the admin settings to display full name. but it’s not working?

Any sugguestions?

 ![CleanShot 2022-05-24 at 16.13.04](https://global.discourse-cdn.com/meta/original/4X/0/7/a/07aca0727e304a07b1237d945e802df5b2379ccf.jpeg)  
 ![CleanShot 2022-05-24 at 15.45.33](https://global.discourse-cdn.com/meta/original/4X/0/c/f/0cf81172e81034b742845ca5b56fba9b6ba90d8d.jpeg)

---

<div class="post-metadata">

### Author: ![j3ang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j3ang/32/251087_2.png) [@j3ang](https://meta.discourse.org/u/j3ang)
#### Post date: [June 21, 2022, 9:25pm UTC](https://meta.discourse.org/t/how-to-display-full-name-in-comments-embeds/228020/2 "2022-06-21T21:25:37Z")

</div>

For anyone else also looking to modify:  
`/var/www/discourse/app/views/embed/comments.html.erb`

---

<div class="post-metadata">

### Author: ![greedNotGood](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@greedNotGood](https://meta.discourse.org/u/greedNotGood)
#### Post date: [August 11, 2022, 10:38am UTC](https://meta.discourse.org/t/how-to-display-full-name-in-comments-embeds/228020/3 "2022-08-11T10:38:33Z")

</div>

Hi @j3ang , can you maybe let me know the change you have made in the file to accomplish this? I tried changing username to fullname but that didn’t work.

---

<div class="post-metadata">

### Author: ![greedNotGood](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@greedNotGood](https://meta.discourse.org/u/greedNotGood)
#### Post date: [August 11, 2022, 10:52am UTC](https://meta.discourse.org/t/how-to-display-full-name-in-comments-embeds/228020/4 "2022-08-11T10:52:16Z")

</div>

OK, some more trial and error brought this: change \<%= post.user.username %\> to \<%= post.user.name %\> — simple, but you just have to know it…

---

<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: [January 18, 2023, 11:18am UTC](https://meta.discourse.org/t/how-to-display-full-name-in-comments-embeds/228020/5 "2023-01-18T11:18:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 16, 2023, 11:09am UTC](https://meta.discourse.org/t/how-to-display-full-name-in-comments-embeds/228020/6 "2023-02-16T11:09:31Z")

</div>

Important note: if you want to override Discourse’s files, you need to use either a [theme component](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648) or a [plugin](https://meta.discourse.org/t/developing-discourse-plugins-part-1-create-a-basic-plugin/30515).

A good example of what you’re trying to do can be found here:

> [@Example Plugin: Custom Activity Summary Template](https://meta.discourse.org/t/example-plugin-custom-activity-summary-template/69016):
>
> Hey everyone, I have created an example plugin to override default Activity Summary (digest) template: [https://github.com/muhlisbc/discourse-custom-activity-summary-template](https://github.com/muhlisbc/discourse-custom-activity-summary-template) Screenshot: [[image] ](https://raw.githubusercontent.com/muhlisbc/discourse-custom-activity-summary-template/master/custom-digest1.jpg)[[image] ](https://raw.githubusercontent.com/muhlisbc/discourse-custom-activity-summary-template/master/custom-digest2.jpg) The main purpose of this plugin is to show how to override default .erb templates on Discourse. I hope this helpful for someone.
