Make Custom Header Links private for private/login required sites

Hi,

Thanks for this great theme component!

For registration-only / private Discourse communities, would it be possible to show the header links only to registered signed-in users?

1 Like

Yes, you can hide them via CSS for visitors who are not logged in:

html.anon .custom-header-links {
    display: none;
}
4 Likes

Thanks, however CSS just hides it from view, the links are still available in the page source and so open to anyone, including search engine, crawlers, etc.
I was aiming for not showing those links at all, like you would have hidden topics in:
image

2 Likes