# 自定义链接文本格式的最佳方法？

**URL:** <https://meta.discourse.org/t/best-way-to-customise-the-formatting-of-the-link-text/277619>\
**Category:** Development\
**Tags:** custom-header-links\
**Created:** [2019 年5 月 1 日 14:31 UTC](https://meta.discourse.org/t/best-way-to-customise-the-formatting-of-the-link-text/277619 "2019-05-01T14:31:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
发布日期： [2019 年5 月 2 日 19:22 UTC](https://meta.discourse.org/t/best-way-to-customise-the-formatting-of-the-link-text/277619/2 "2019-05-02T19:22:04Z")

</div>

> [@alexs](#):
>
> 自定义链接文本格式的最佳方法是什么？看起来编辑 CSS 并不是最佳方案，因为当插件更新时，这些更改将会丢失。

您需要创建一个包含您更改的新主题组件，然后将其添加到与“自定义标题链接”相同的主主题中。

---

_[View the full topic](https://meta.discourse.org/t/best-way-to-customise-the-formatting-of-the-link-text/277619)._
