# 在徽标旁添加HTML（链接）

**URL:** https://meta.discourse.org/t/add-html-link-next-to-logo/36982
**Category:** Support
**Created:** [2015年十二月20日 13:33 UTC](https://meta.discourse.org/t/add-html-link-next-to-logo/36982 "2015-12-20T13:33:13Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![laurin1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laurin1/32/121716_2.png) [@laurin1](https://meta.discourse.org/u/laurin1)
#### Post date: [2015年十二月20日 13:33 UTC](https://meta.discourse.org/t/add-html-link-next-to-logo/36982/1 "2015-12-20T13:33:13Z")

</div>

We want to add a link in the space next to the logo. Is that possible?

 ![](https://global.discourse-cdn.com/meta/original/3X/4/0/40d26d7327eda35d19fba4bbddd5604579be8ef9.png)

---

<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: [2015年十二月20日 14:16 UTC](https://meta.discourse.org/t/add-html-link-next-to-logo/36982/2 "2015-12-20T14:16:35Z")

</div>

[Yeah, take a look at this page.](https://meta.discourse.org/t/adding-plugin-outlets-using-site-customizations/32727) The example used is adding a link to the header.

---

<div class="post-metadata">

### Author: ![laurin1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laurin1/32/121716_2.png) [@laurin1](https://meta.discourse.org/u/laurin1)
#### Post date: [2015年十二月20日 20:02 UTC](https://meta.discourse.org/t/add-html-link-next-to-logo/36982/3 "2015-12-20T20:02:50Z")

</div>

That works perfectly, thanks.

---

<div class="post-metadata">

### Author: ![laurin1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laurin1/32/121716_2.png) [@laurin1](https://meta.discourse.org/u/laurin1)
#### Post date: [2016年六月18日 03:52 UTC](https://meta.discourse.org/t/add-html-link-next-to-logo/36982/4 "2016-06-18T03:52:24Z")

</div>

So this worked great until a recent beta update and now it does not work at all:

```
<script type='text/x-handlebars' data-template-name='/connectors/header-after-home-logo/add-header-links'>
  {{#unless showExtraInfo}}
    <div style="width:100px;float:left;font-size:1.4em;font-weight:bold;padding-top:10px;padding-left:20px;">
       <a class="nav-link " href="/">
            Home
       </a>
    </div>
  {{/unless}}
</script>

```

---

<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: [2016年六月18日 13:37 UTC](https://meta.discourse.org/t/add-html-link-next-to-logo/36982/5 "2016-06-18T13:37:54Z")

</div>

The format shown [in this topic](https://meta.discourse.org/t/adding-header-links-post-vdom-upgrade/43284) works as a replacement. 🙂

You can ignore the discussion in the topic, my issue with the code was resolved. The stuff in the OP works just fine, now.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年六月8日 12:45 UTC](https://meta.discourse.org/t/add-html-link-next-to-logo/36982/6 "2024-06-08T12:45:33Z")

</div>

此主题已在 3092 天后自动关闭。不再允许回复。
