typeoneerror
(Benjamin Borowski)
December 13, 2017, 6:18pm
1
Is there no way to add custom links to the navigation or next to the logo without self-hosted Discourse? If not, where would you recommend we put external links that need to be super obvious for new users?
I’d love to see the Theme editor use Liquid or another templating system so we can do more with hosted Discourse. Many of our clients we’re building forums for would love this.
jomaxro
(Joshua Rosenfeld)
December 13, 2017, 6:36pm
2
You can add custom links to the navigation/next to the logo on hosted Discourse.
A quick search led me to the following (there are likely more):
This feature is now available as a dedicated theme component .
Want to add a new link right next to search icon on header? Follow below steps:
Add this JavaScript code to your site theme
Go to Admin
Customize
Themes
Select the theme you wish to customize
Edit CSS/HTML
</head>
<script type="text/discourse-plugin" version="0.4">
const { iconNode } = require("discourse-common/lib/icon-library");
api.decorateWidget('header-icons:before', helper => {
return helper.h('li', [
he…
https://meta.discourse.org/t/custom-nav-header-like-discourse-org/21053
I recently made a dropdown navigation menu for Envato’s new forums , so I’ll share some code to implement something similar on your own site.
We’ll be implementing a black header with one link that reveals a menu of more links, like this:
[image]
In Admin > Customize > CSS/HTML, create a new customization. Remember that you can have multiple customizations active at the same time, so it’s a good idea to use many of them instead of one giant one for everything. For this custom header, create a…
2 Likes
typeoneerror
(Benjamin Borowski)
December 13, 2017, 7:19pm
3
Fantastic, thanks @jomaxro ! I don’t think I realized what the “Header” section of the template was for. This is exactly what I was looking for.
3 Likes
HAWK
(Hawk)
Closed
December 15, 2017, 5:01am
4
This topic was automatically closed after 32 hours. New replies are no longer allowed.