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

**URL:** <https://meta.discourse.org/t/use-standard-share-icon-for-share-post-instead-of-link-icon/256416>\
**Category:** UX\
**Created:** [2023 年2 月 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:** 2

<div class="post-metadata">

作者： ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)\
发布日期： [2023 年2 月 27 日 18:40 UTC](https://meta.discourse.org/t/use-standard-share-icon-for-share-post-instead-of-link-icon/256416/2 "2023-02-27T18:40:49Z")

</div>

默认代码是：

```plaintext

  api.replaceIcon('link', 'share-alt');

```

奇怪的是，这不起作用。它与其他图标一起使用，就在它旁边，比如 `bookmark` 或 `flag`。`link` 应该是图标的名称……

@darkpixlz 你最近发帖说要把侧边栏的链接图标换成蛋糕……你在这里用了不同的图标名称吗？

---

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