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

XF 1.4 Can't Hide Tabs

Discussion in 'Styling and Customization Questions' started by Travis, Dec 22, 2014.

  1. Travis

    Travis Active Member

    I'm trying to hide my member tab and my Resource Manager Tab. I have been using the following code in Extra.css:

    Code:
    /* no Members tab in navbar */
    li.navTab.members{
    display: none;
    }
    /* no Members tab in navbar */
    li.navTab.resources{
    display: none;
    }
    It is having no effect. Any advice?
     
  2. TJA

    TJA Well-Known Member

    Code:
    .navTab.members {
    display: none !important;
    }
    
    .navTab.resources {
    display: none !important;
    }
     
  3. Travis

    Travis Active Member

    Thanks TJA. I feel stupid now forgetting the !Important lol :)
     
  4. Russ

    Russ Well-Known Member

    If I may suggest... I'd do this instead for the members:

    Code:
    .navTab.members .navLink, .navTab.members .SplitCtrl {
    display: none;
    }
    
    By hiding the entire tab you'll have a missing sub-nav when viewing member profiles and it looks a little awkward. If you hide just the link and the splitctrl(arrow) it should remove the text and spacing, and still allow a sub-nav on the member profiles.
     
    Sunka, PJK and Coop1979 like this.

Share This Page