# 如何在主页菜单中添加指向其他网站的链接？

**URL:** https://meta.discourse.org/t/how-to-add-links-on-home-page-menu-to-other-site/145181
**Category:** Support
**Created:** [2020 年3 月 23 日 01:09 UTC](https://meta.discourse.org/t/how-to-add-links-on-home-page-menu-to-other-site/145181 "2020-03-23T01:09:48Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2020 年3 月 23 日 01:31 UTC](https://meta.discourse.org/t/how-to-add-links-on-home-page-menu-to-other-site/145181/2 "2020-03-23T01:31:29Z")

</div>

最简单的方式是通过 #Customization > Theme component 来添加或更改 Discourse 的用户界面。安装非常简单，[本指南](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) 将引导您完成整个流程。

以下是三个可能对您有用的主题组件：

> [@自定义顶部导航链接](https://meta.discourse.org/t/custom-top-navigation-links/87225):
>
> discourse2摘要 自定义顶部导航链接 允许您向 Discourse 顶部导航添加链接。eyeglasses预览 [在 Discourse 主题创建器中预览](https://discourse.theme-creator.io/theme/Discourse/custom-top-navigation-links)hammer_and_wrench仓库链接 [https://github.com/discourse/Discourse-nav-links-component](https://github.com/discourse/Discourse-nav-links-component)open_bookDiscourse 主题新手？ [Discourse 主题使用入门指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) 安装此主题组件 功能 桌面端 移动端 设置： 名称 描述 导航链接 以分号分隔，顺序为：显示名称;描述;URL 隐藏下拉菜单 隐藏分类和标签下拉菜单 隐藏默认链接 隐藏移动端和桌面端的默认链接。 导航链接 — 需要包含三个部分： 名称 描述 路径或 URL 名称是菜单中显示的链接文本。描述在您悬停在名称上时显示，如下所…

> [@标题子菜单](https://meta.discourse.org/t/header-submenus/94584):
>
> discourse2摘要 标题子菜单 允许您使用纯文本构建带有子菜单的标题菜单！eyeglasses预览 [在 Discourse 主题创建器中预览](https://discourse.theme-creator.io/theme/Discourse/header-submenus)hammer_and_wrench仓库链接 [https://github.com/discourse/discourse-header-submenus](https://github.com/discourse/discourse-header-submenus)open_bookDiscourse 主题新手？ [Discourse 主题使用入门指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) 安装此主题组件 功能 桌面端 移动端 设置 名称 描述 菜单项 添加菜单项。每行一个项目，顺序为：文本、图标、标题、视图。 子菜单项 添加子菜单项。每行一个项目，顺序为：父级、文本、图标、URL、目标、标题。 Svg 图标 包含上述列表中使用的每个图标的 FontAwesome 图标类。 固定模式 强制菜单在屏幕顶部可见，不受滚动位置影响 - 仅限桌面端 显示箭头 在菜单项旁边显示箭头图标 反转位置 在屏幕的另一侧显示菜单项 菜单背景 菜单的背景颜色。（…

> [@高级搜索横幅](https://meta.discourse.org/t/search-banner-theme-component/122939):
>
> warning This theme component is deprecated and should no longer be used. Its features are now in Discourse Core — see our documentation for details on setting up a welcome banner: → [https://meta.discourse.org/t/creating-a-banner-to-display-at-the-top-of-your-site/153718#p-762961-welcome-banner-1](https://meta.discourse.org/t/creating-a-banner-to-display-at-the-top-of-your-site/153718#p-762961-welcome-banner-1)discourse2Summary Advanced Search Banner 在主帖列表导航上方的横幅中放置一个搜索栏以及可选的标题和副标题文本。eyeglassesPreview [在 Discourse 主题创建器上预览](https://discourse.theme-creator.io/theme/Discourse/search-banner)hammer_and_wrenchRepository Link [https://github.com/disco…](https://github.com/discourse/discourse-search-banner)

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-links-on-home-page-menu-to-other-site/145181)._
