# 如何在无访问权限消息中添加链接

**URL:** <https://meta.discourse.org/t/how-to-add-a-link-to-the-no-access-message/96007>\
**Category:** Support\
**Created:** [2018年八月30日 13:14 UTC](https://meta.discourse.org/t/how-to-add-a-link-to-the-no-access-message/96007 "2018-08-30T13:14:35Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2019年一月28日 12:10 UTC](https://meta.discourse.org/t/how-to-add-a-link-to-the-no-access-message/96007/14 "2019-01-28T12:10:25Z")

</div>

Reminding you that the text can be changed from `Customize > Text Content > js.topic.invalid_access.description`, there is a simple CSS trick to do what you want.

In your `/admin/customize/themes > Common > Body` add:

```html
<div class="topic-error">
    <div>
        <a title="" href="http://example.com">Random text.</a>
        <p>Some other words.</p>
    </div>
</div> 

```

In your CSS add:

```css
.topic-error a:after {
   content: attr(title) " You can add other text here, or delete these quotes. ";
}

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/7/d76df9713a87cdbd358f56d49c4311ca4e3e2696.png)

See also

> [@Insert text or images anywhere on your site using CSS pseudo-elements](https://meta.discourse.org/t/insert-plain-text-or-image-anywhere-in-discourse/99200):
>
> So, you want to insert some text or image in your Discourse site. Regarding the text in most cases it is sufficient to modify it from /admin/customize/site\_texts. Sometimes, however, it is our desire to add a sentence between two distinct blocks, rather than modifying one of the existing elements. Let’s see how to do it using the property :before and :after in CSS3. Basic steps In order to work we will need to use the developer console present on the main browsers. To open it, just press F…

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-a-link-to-the-no-access-message/96007)._
