1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hide Forums tab?

Discussion in 'Styling and Customization Questions' started by Morgain, Oct 2, 2012.

  1. Morgain

    Morgain Well-Known Member

    I would like to hide the Forums navtab!

    I've created a "Home" page (XF Page) with lots of guide links and brief text - this includes a link to the Forums page.
    This is also a navtab courtesy of Nodes As Tabs.

    The Forums page itself and its secondary links are now all secondary links under the Home navtab (my guide page) Plus the Forums link is top of my sidebar which is everywhere.

    So I don't now need the Forums link as a tab in its own right.
    But in the navigation template whatever I try to do to comment out the Forums tab section it objects!
    Maybe because it has a hook in it? I get syntax error.
  2. Adam Howard

    Adam Howard Well-Known Member

    In your extra.css

    .navTabs .navTab.forums.PopupClosed
    This should hide the forum tab in your navigation.
    Morgain and Jake Bunce like this.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Note that Adam's code will hide the tab only when it's not selected. It will show again when you visit a page belonging to that tab. This is really the best you can do without modifying the code. If you were to remove the tab completely then all pages belonging to that tab would be orphaned which causes visual weirdness in the navbar.
    Adam Howard likes this.
  4. Morgain

    Morgain Well-Known Member

    Jake thanks I noticed that but it's OK.

    I also needed to add !important to Adam's code.

    Got it all really nice and simplified now. Just 3 tabs for everyone plus 1 admin (frequent pages) one for me.
    Adam Howard likes this.
  5. Morgain

    Morgain Well-Known Member

    Adam I am so sorry I did not thank you properly.
    Also I LOVE your avatar Depp Depp Depp mmmmmmm
    Adam Howard likes this.
  6. Adam Howard

    Adam Howard Well-Known Member

    No worries.... Thanks isn't really needed. I'm just glad you found it useful :)
  7. Morgain

    Morgain Well-Known Member

    Guys I'm still really happy with the simplicity I have here thanks to your help.
    It's OK that the Forums tab appears if I go in a forum anywhere.

    But it would be better since it's there if its secondary links appeared with it. At the moment I get just the main top tab with no secondaries, when the top tab appears.

    Forums tab.png
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    If it's the default Forums tab then there should be secondary links defined in the navigation template, unless you removed them.

Share This Page