# Adding header links post vdom upgrade

**URL:** https://meta.discourse.org/t/adding-header-links-post-vdom-upgrade/43284
**Category:** Support
**Created:** [April 26, 2016, 11:44pm UTC](https://meta.discourse.org/t/adding-header-links-post-vdom-upgrade/43284 "2016-04-26T23:44:31Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)
#### Post date: [April 27, 2016, 12:15am UTC](https://meta.discourse.org/t/adding-header-links-post-vdom-upgrade/43284/3 "2016-04-27T00:15:24Z")

</div>

Ah, well this worked:

```plaintext
<script type="text/discourse-plugin" version="0.2">
api.decorateWidget('header:after', helper => {
    const showExtraInfo = helper.attrs.topic;
        if(!showExtraInfo) {
            return helper.h('div#header-links', [
                helper.h('a#recruiter', {
                    href:'https://sih.onemadogre.com/t/joining-sih/494', 
                    text:'Join Us!'
                }),
                helper.h('a#about', {
                    href:'https://sih.onemadogre.com/c/guild-news-announcements/about-the-guild', 
                    text:'About SiH'
                })
            ]);
        }
});
</script>

```

After noticing the links were working, just being overridden by the home page link, I switched to using the `header` widget instead of `home-logo`. I didn’t use `header` at first due to missing the bit that detected whether or not topic info was loaded, but found it on a second pass. 🙂

I would still appreciate any advice on whether or not this is the best approach - this seemed like the most straightforward way to me, but yeah.

Oh, blurgh. Except positioning the links isn’t quite working now, having it right after the home logo was quite convenient. \>.\>

---

_[View the full topic](https://meta.discourse.org/t/adding-header-links-post-vdom-upgrade/43284)._
