# Customized header link target attribute being ignored

**URL:** https://meta.discourse.org/t/customized-header-link-target-attribute-being-ignored/57380
**Category:** Support
**Created:** [February 14, 2017, 7:28pm UTC](https://meta.discourse.org/t/customized-header-link-target-attribute-being-ignored/57380 "2017-02-14T19:28:02Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![greg\_r](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/greg_r/32/121203_2.png) [@greg\_r](https://meta.discourse.org/u/greg_r)
#### Post date: [February 14, 2017, 7:50pm UTC](https://meta.discourse.org/t/customized-header-link-target-attribute-being-ignored/57380/3 "2017-02-14T19:50:33Z")

</div>

Here is the code I used:

```
<script type="text/discourse-plugin" version="0.4">
api.decorateWidget('home-logo:after', helper => {
    const showExtraInfo = helper.attrs.minimized;
        if(!showExtraInfo) {
            return helper.h('a.blog-link', {href:'https://blog.example.com', target:'_blank'}, 'Visit our blog');
        }
});
</script>

```

I placed that in the Customize → CSS/HTML → `</head>` section. Running 1.8.0 beta4 (upgrading to beta5 to see if it helps).

---

_[View the full topic](https://meta.discourse.org/t/customized-header-link-target-attribute-being-ignored/57380)._
