# Post.hbs background image partial

**URL:** <https://forum.ghost.org/t/post-hbs-background-image-partial/8545>\
**Category:** Developer help\
**Created:** [August 6, 2019, 1:51am UTC](https://forum.ghost.org/t/post-hbs-background-image-partial/8545 "2019-08-06T01:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark.l](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mark.l/32/16545_2.png) [@mark.l](https://forum.ghost.org/u/mark.l)\
**Post date:** [August 6, 2019, 1:51am UTC](https://forum.ghost.org/t/post-hbs-background-image-partial/8545/1 "2019-08-06T01:51:57Z")

</div>

Current post.hbs uses this code to set the background-image:

```
{{> header background=feature_image}}

```

Works fine, of course. I would like to use the primary\_tag image instead, so I tried replace the above with:

```
{{> header background=primary_tag:feature_image}}

```

Does not work. Neither does this:

```
{{> header background=tag:feature_image}}

```

Looking through the post.hbs file it appears that the primary\_tag data is available. What am I doing wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [August 6, 2019, 3:25am UTC](https://forum.ghost.org/t/post-hbs-background-image-partial/8545/2 "2019-08-06T03:25:29Z")

</div>

Haven’t tested locally, but try replacing your colons with periods. If you want to access properties of an object, you have to use a period, not a colon 😉

---

<div class="post-metadata">

**Author:** ![mark.l](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mark.l/32/16545_2.png) [@mark.l](https://forum.ghost.org/u/mark.l)\
**Post date:** [August 6, 2019, 3:53am UTC](https://forum.ghost.org/t/post-hbs-background-image-partial/8545/3 "2019-08-06T03:53:52Z")

</div>

> [@mark.l](#):
>
> {\> header background=primary\_tag:feature\_image}}

Thank you. This works like a champ:

{{\> header background=primary\_tag.feature\_image}}

Really appreciate the help!
