No way to click on a 'Banner' topic

Here’s what it looks like

Only staff can see the “Edit this banner” link, but it links to the same spot as “Go to thread” so I should rid of it altogether. So then we have this instead

<script type="text/x-handlebars" data-template-name="components/discourse-banner">
{{#if visible}}
  <div class="row">
    <div id="banner" class={{overlay}}>
      {{d-button icon="times" action="dismiss" class="btn btn-flat close" title="banner.close"}}
      <div id="banner-content">
        {{{content}}}
        <p><a href="{{banner.url}}">Go to thread</a></p>
      </div>
    </div>
  </div>
{{/if}}
</script>

The line you can edit is
<p><a href="{{banner.url}}">Go to thread</a></p> You can replace Go to thread with whatever text you want. You can also add anything you want anywhere before or after the {{{content}}} of the banner post.

2 Likes