# 使用标准分享图标分享帖子（而非链接图标）

**URL:** <https://meta.discourse.org/t/use-standard-share-icon-for-share-post-instead-of-link-icon/256416>\
**Category:** UX\
**Created:** [2023年二月27日 18:14 UTC](https://meta.discourse.org/t/use-standard-share-icon-for-share-post-instead-of-link-icon/256416 "2023-02-27T18:14:05Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![bquast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bquast/32/289307_2.png) [@bquast](https://meta.discourse.org/u/bquast)\
**Post date:** [2023年二月27日 20:24 UTC](https://meta.discourse.org/t/use-standard-share-icon-for-share-post-instead-of-link-icon/256416/9 "2023-02-27T20:24:22Z")

</div>

谢谢 Renato。对我来说，图标消失了。

```plaintext
<script type="text/discourse-plugin" version="0.8">
  api.replaceIcon('d-post-share', 'share-alt');
  api.replaceIcon('d-topic-share', 'share-alt');
</script>

```

使用主题组件（使用默认主题）添加到页眉。我得到：

 ![Screenshot from 2023-02-27 21-22-47](https://global.discourse-cdn.com/meta/original/4X/a/f/2/af2215b37f66bd374ee1f08896a92720295a32ee.png)

我需要做些别的什么吗，也许需要添加图标？

---

_[View the full topic](https://meta.discourse.org/t/use-standard-share-icon-for-share-post-instead-of-link-icon/256416)._
