# 行动号召——鼓励新用户参与

**URL:** https://meta.discourse.org/t/call-to-action-encourage-new-users-to-participate/341042
**Category:** UX
**Created:** [2024 年12 月 6 日 23:26 UTC](https://meta.discourse.org/t/call-to-action-encourage-new-users-to-participate/341042 "2024-12-06T23:26:47Z")
**Posts on this page:** 1
**Showing post:** 19

<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 年12 月 9 日 02:56 UTC](https://meta.discourse.org/t/call-to-action-encourage-new-users-to-participate/341042/19 "2024-12-09T02:56:59Z")

</div>

> [@Jacob\_Peebles](#):
>
> - 将“登录”按钮改为“提问”，这样对新老用户都适用
> - 我会使用 cookie 或某些会话信息来判断是显示“欢迎回来”还是“欢迎来到你的新社区”，并展示相应的表单
> - 我会去掉汉堡菜单，换成一个用户图标（我认为这个更通用），并将其指向上述的模态框

好的，这里有一些选项。

### 1. 更改登录按钮

前往 `管理 -> 站点文本`，然后在顶部的筛选字段中输入“Log in”。会出现一个列表，应该是顶部名为 `js.Log_in` 的那个——编辑它。

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/d/2/2d2f1fcf00631f3e1748db4202c724b602b38b04.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/2/e/72e52b55fbab1c8dadea29952742f099cb0065dc.png)

结果（在移动设备上）：

 ![IMG_2625](https://global.discourse-cdn.com/meta/original/4X/2/4/5/2452060444ec635abef0e64e8aecc2f43635f8e6.jpeg)

### 2. 带 cookie 控制的欢迎横幅

如果你使用 Versatile Banner 组件并创建自己的横幅，它有与 cookie 相关的控件来控制用户行为。或者，你可以 fork 它并创建自己的自定义横幅。

 ![Screenshot from 2024-12-08 18-42-48](https://global.discourse-cdn.com/meta/original/4X/5/f/a/5fafdc5bb5e6707b0af568e375d6c4d46dbb9129.png)

### 3. 汉堡菜单替换

在新的或现有的本地主题或主题组件中，点击“编辑 CSS/HTML”，然后转到“Head”标签并粘贴此内容：

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/8/a/b8af32d0a721db0e7e0c630e947682e34824d9c1.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/3/d/13d252970717a576a5e5aa744e49e2d62615934c.png)

```js
<script type="text/discourse-plugin" version="0.11">
        api.replaceIcon('bars', 'user');
</script>

```

结果：

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/2/2/8226ccd1d05a52c790805fe835edd5c819ea614f.png)

我不认为在没有一些自定义编程工作的情况下，可以将其指向模态框。这是否意味着你想隐藏整个侧边栏菜单给匿名用户？如果是这样，[这个主题组件](https://meta.discourse.org/t/navigation-sidebar-menu-display-control/277687?u=lilly) 具有该功能。

---

_[View the full topic](https://meta.discourse.org/t/call-to-action-encourage-new-users-to-participate/341042)._
