# Help with handlebars

**URL:** https://meta.discourse.org/t/help-with-handlebars/234185
**Category:** Development
**Created:** [July 27, 2022, 8:56pm UTC](https://meta.discourse.org/t/help-with-handlebars/234185 "2022-07-27T20:56:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alanost](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alanost/32/230952_2.png) [@alanost](https://meta.discourse.org/u/alanost)
#### Post date: [July 27, 2022, 8:56pm UTC](https://meta.discourse.org/t/help-with-handlebars/234185/1 "2022-07-27T20:56:52Z")

</div>

Hello,  
I have researched a lot on the Internet and tried myself but found nothing. I must also say that I am new to Ember.js. The more I am happy if someone can help me.  
It’s about the bottom code to display a div under the navbar. This works great. However, I only want it to be displayed when

- the user is logged in
- only on the home page, so URL “/”

```plaintext
<script type="text/x-handlebars" data-template-name="/connectors/below-site-header/custom-homepage">
  <div style="height: 200px; width: 200px;background: red"></div>
</script>

```

---

<div class="post-metadata">

### Author: ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)
#### Post date: [July 27, 2022, 10:16pm UTC](https://meta.discourse.org/t/help-with-handlebars/234185/2 "2022-07-27T22:16:00Z")

</div>

[https://github.com/discourse/discourse-meta-banner/blob/main/javascripts/discourse/components/meta-banner.js](https://github.com/discourse/discourse-meta-banner/blob/main/javascripts/discourse/components/meta-banner.js)

You can take a look at how meta banner works, it supports conditional login state and path.

---

<div class="post-metadata">

### Author: ![alanost](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alanost/32/230952_2.png) [@alanost](https://meta.discourse.org/u/alanost)
#### Post date: [July 28, 2022, 9:21am UTC](https://meta.discourse.org/t/help-with-handlebars/234185/3 "2022-07-28T09:21:42Z")

</div>

Thank you, that helped me a lot
