Hi guys.
As a novice I must assume I’m missing something.
I in Customize → Themes add included components : custom header link
Then in Components → Custom Header Links I add Include component on … : Default
None of pre-set nor my own links appear in the header, when a user is not logged in header only has log insign up & search icon, on the right.
What is it that I’m missing?
You can also preview it or the component by using the preview button at bottom to check the settings. This makes it easier to set up components and themes before rolling them out to forum users.
Also double check to make sure you are setting up the header links properly in the component. Check the default ones to see how they are setup.
I do have those, yes. Themes → Default → Theme is enabled by default
Setup is virtually plain-vanilla, it’s a test-lab.
It appears as if CHL had no effect on my setup, preview or non-logged user, no header at all.
non-logged-in user → sign up & login only,
logged-in user only only three icons: chat, search, user.
version is 3.0.6
I strongly suggest you upgrade your Discourse because there have been significant changes in core since that version, some that affected theme components.
After a bit of fiddling, I think it’s the example links which are out of date. I think there’s recently been a change to how a plain / is handled. which are causing an issue.
Getting rid of all the example ones and adding something like:
A link, a link, https://meta.discourse.org, vdm, blank
oh weird you don’t have a settings editor button. Probably need to upgrade your Discourse.
did you refresh the page after changing the settings?
FWIW, here are my settings on my dev local Discourse install. I edited the default settings for the first one that goes to Meta, and also added one to my FAQ page just to make sure non-default ones work.
Meta, will open in a new tab to Discourse Meta, https://meta.discourse.org, vdo, blank, remove
Most Liked, Posts with the most amount of likes, /latest/?order=op_likes, vdo, self, keep
Privacy, Our Privacy Policy, /privacy, vdm, self, keep
FAQ, Frequently Asked Questions, /faq, vdm, self, keep
As a word of advice, I would limit the number of links to one or two for mobile view. That header gets crowded awfully fast in mobile/ small screen views, especially for anonymous users with the login/sign up buttons.