# 更改偏好设置的标题

**URL:** <https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166>\
**Category:** Development\
**Created:** [2024年二月21日 10:07 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166 "2024-02-21T10:07:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlson4ik](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karlson4ik](https://meta.discourse.org/u/karlson4ik)\
**Post date:** [2024年二月21日 10:07 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/1 "2024-02-21T10:07:30Z")

</div>

我该如何更改这些标题？或者我可以完全删除它们，因为我不需要它们？  
 ![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/4X/1/6/1/161cb2f6164bd6d81a41cca7039ddec9f3e9b6d0.png)

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)\
**Post date:** [2024年二月21日 11:49 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/2 "2024-02-21T11:49:48Z")

</div>

你好 @karlson4ik 👋

你有没有考虑过用 [css](https://meta.discourse.org/t/make-css-changes-on-your-site/168101) 来隐藏它们？

> [@karlson4ik](#):
>
> 我不需要它们

我只是好奇，为什么会这样？

---

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2024年二月21日 12:02 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/3 "2024-02-21T12:02:03Z")

</div>

那些不只是标题，它们是您个人资料偏好设置不同部分的选项卡。没有它们，用户就无法更改自己的任何偏好设置。

---

<div class="post-metadata">

**Author:** ![karlson4ik](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karlson4ik](https://meta.discourse.org/u/karlson4ik)\
**Post date:** [2024年二月21日 12:33 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/4 "2024-02-21T12:33:20Z")

</div>

这是客户的要求，所以我不知道他需要它做什么。  
你能告诉我如何用 CSS 隐藏它吗？

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)\
**Post date:** [2024年二月21日 12:55 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/5 "2024-02-21T12:55:12Z")

</div>

你最好告诉客户上面 @Lilly 说的话。选项卡具有重要功能，用户可以通过它们浏览他们的个人资料等。

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/e/7/9e71c11b606597a7f8a4fd8f25418c8cc7bf0ca8.jpeg)

---

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2024年二月21日 13:00 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/6 "2024-02-21T13:00:53Z")

</div>

如果你确实必须这样做，你可以为非员工隐藏它们（普通用户，所以版主和管理员可以看到它们），并且你可以选择隐藏哪些。除非有特殊用例规定，否则我不推荐这样做。

> [@Hide some preference sub-tabs under the user profile?](https://meta.discourse.org/t/hide-some-preference-sub-tabs-under-the-user-profile/282454/2?u=lilly):
>
> Hi Jeff slight_smile You could first install [CSS Classes for Current User's Groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068), then use the added classes to hide these elements with CSS: body:not(.staff) { .user-nav\_\_preferences-security, .user-nav\_\_preferences-emails, .user-nav\_\_preferences-tracking, .user-nav\_\_preferences-users { display: none !important; } } Note that with this component, admins don’t have a specific class. It would require additional javascript. Staff means admins and mo…

---

<div class="post-metadata">

**Author:** ![karlson4ik](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karlson4ik](https://meta.discourse.org/u/karlson4ik)\
**Post date:** [2024年二月21日 13:01 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/7 "2024-02-21T13:01:56Z")

</div>

非常感谢，我通过链接找到了一篇描述在哪里更改 CSS 的文章。我都做好了，这并不难，我只是不知道在哪里自定义。

---

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [2024年二月22日 16:39 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/8 "2024-02-22T16:39:25Z")

</div>

> [@karlson4ik](#):
>
> 这是客户的要求，所以我不知道他需要它做什么。

我不知道你们的网站是如何设置的，但如果你们使用的是本地登录，并且用户需要重置密码……没有“安全”选项卡，他们将无法做到这一点。

同样，没有“电子邮件”选项卡，他们也无法更改电子邮件通知设置，等等。其他选项卡也为每个用户提供了可定制性，值得向你们的客户提及这一点。

---

<div class="post-metadata">

**Author:** ![karlson4ik](https://avatars.discourse-cdn.com/v4/letter/k/dec6dc/32.png) [@karlson4ik](https://meta.discourse.org/u/karlson4ik)\
**Post date:** [2024年二月29日 08:57 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/9 "2024-02-29T08:57:20Z")

</div>

只能通过 sso 登录网站。因此，没有密码。  
所有用户的邮件通知均已禁用。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2024年三月30日 08:57 UTC](https://meta.discourse.org/t/change-the-headings-of-preferences-settings/296166/10 "2024-03-30T08:57:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
