How do I hide the About, FAQ, TOS & Privacy Policy?

How do I hide/remove access to the About, FAQ, TOS and Privacy Policy for the members of the community?

I don’t think you can get rid of the existence of the subpages themselves, but you can “hide” easy user access to them by using CSS. So, for example, if you want to remove links to them from the hamburger menu, you can use CSS, like

.hamburger-panel a.widget-link.about-link {
     display: none;
}

and

.hamburger-panel a.faq-priority.widget-link {
      display: none;
}
2 Likes

By “hamburger menu” are you referring to the sidebar? Usually “hamburger menu” refers to the menu on mobile only, but since this sidebar is also displayed with a hamburger icon, maybe this is what you’re talking about.

image

If so, perhaps this has changed since this original post in 2021. It appears that I can remove these pages from the overflow menu. People could still navigate directly to them with the link, but they wouldn’t show up here.

Please correct me if I got this wrong!

1 Like

Yes I think the OP was referring to Discourse at the time which had a hamburger menu instead of a sidebar. It used to look something like this:

This was replaced shortly after in 2022 with the new sidebar being the default UI design, and the sidebar has brought many more features.

4 Likes

So what I’ve done to hide these is:

  • remove the pages from the sidebar options using “Customize this section”
  • changed the URL in settings for tos-url etc to a different page
  • added some CSS to hide the two particular links I want to hide, e.g.:
    nav-pills .nav-item-privacy {
      display: none;
    }
    .nav-pills .nav-item-tos {
      display: none;
    }
    

Is that going to be sufficient to prevent these pages from showing up anywhere or am I missing something?

I should clarify, that it all looks good to me, but I’m wondering if there are other ways of reaching these pages or viewing these links that I haven’t addressed.

1 Like