# Insira o nome de usuário na página inicial (banner)

**URL:** https://meta.discourse.org/t/enter-username-on-the-homepage-banner/121587
**Category:** Support
**Created:** [Junho 28, 2019, 1:43pm UTC](https://meta.discourse.org/t/enter-username-on-the-homepage-banner/121587 "2019-06-28T13:43:31Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [Junho 28, 2019, 2:10pm UTC](https://meta.discourse.org/t/enter-username-on-the-homepage-banner/121587/2 "2019-06-28T14:10:13Z")

</div>

Dê uma olhada aqui:

> [@Display username when login in banner](https://meta.discourse.org/t/display-username-when-login-in-banner/83024/10?u=dax):
>
> It looks like you copied the wrong code. This is what you want to add to \</head\> tab: \<script type="text/discourse-plugin" version="0.8.18"\> api.onPageChange(() =\> { if(api.getCurrentUser() != null) { $("#logged-in-user").text(" " + api.getCurrentUser().name.split(' ')[0]); } }); \</script\> And place this in the After Header tab where appropriate: \<h2 class="x-title"\>Hey\<span id="logged-in-user"\>\</span\>! Bienvenue dans ta nouvelle communauté\</h2\>

---

_[View the full topic](https://meta.discourse.org/t/enter-username-on-the-homepage-banner/121587)._
