# Change username to first name (or full name) in header

**URL:** <https://community.hivepress.io/t/change-username-to-first-name-or-full-name-in-header/1324>\
**Category:** HivePress\
**Created:** [August 14, 2022, 7:54pm UTC](https://community.hivepress.io/t/change-username-to-first-name-or-full-name-in-header/1324 "2022-08-14T19:54:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![databell](https://community.hivepress.io/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@databell](https://community.hivepress.io/u/databell)\
**Post date:** [August 14, 2022, 7:54pm UTC](https://community.hivepress.io/t/change-username-to-first-name-or-full-name-in-header/1324/1 "2022-08-14T19:54:16Z")

</div>

I’m trying to change the appearance of the header so when a user is logged, he or she sees their username currently, but I’d rather they see their first or full name in that area, if they filled that out.

I went to HivePress/Settings/Users/Display to change to full name from the pulldown, but I still see the username in the header instead.

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [August 16, 2022, 12:05am UTC](https://community.hivepress.io/t/change-username-to-first-name-or-full-name-in-header/1324/4 "2022-08-16T00:05:04Z")

</div>

It is possible but requires overriding file `/hivepress/templates/user/login/user-login-link.php` via a child theme. If you’re familiar with the theme customization basics please check this tutorial [Customizing Templates I HivePress Developer Docs - YouTube](https://www.youtube.com/watch?v=LkojYp-8uwY&ab_channel=HivePress)

---

<div class="post-metadata">

**Author:** ![databell](https://community.hivepress.io/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@databell](https://community.hivepress.io/u/databell)\
**Post date:** [August 16, 2022, 6:25pm UTC](https://community.hivepress.io/t/change-username-to-first-name-or-full-name-in-header/1324/5 "2022-08-16T18:25:14Z")

</div>

Right. I know that already. That’s not the question.

The question is what do I change get\_username to in order to display the full name?

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [August 17, 2022, 10:51am UTC](https://community.hivepress.io/t/change-username-to-first-name-or-full-name-in-header/1324/8 "2022-08-17T10:51:09Z")

</div>

Please try changing `get_username()` with `get_full_name()` if you already copied this template part to a child theme. The name fields are not guaranteed to be non-empty unless you added them to the registration form, you can also try using `get_display_name()` instead

---

<div class="post-metadata">

**Author:** ![databell](https://community.hivepress.io/letter_avatar_proxy/v4/letter/d/e36b37/32.png) [@databell](https://community.hivepress.io/u/databell)\
**Post date:** [August 17, 2022, 7:07pm UTC](https://community.hivepress.io/t/change-username-to-first-name-or-full-name-in-header/1324/9 "2022-08-17T19:07:51Z")

</div>

Ah, that’s it. I was trying similar variations of that but it wasn’t working properly. Now it does, so thank you for that.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [September 16, 2022, 7:08pm UTC](https://community.hivepress.io/t/change-username-to-first-name-or-full-name-in-header/1324/10 "2022-09-16T19:08:00Z")

</div>

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