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

XF 1.5 Remove navtabs?

Discussion in 'Styling and Customization Questions' started by Hecter, Jan 31, 2016.

  1. Hecter

    Hecter Member

    I've searched around a great deal for this, but how do I completely remove navtabs, like say here I wanted to remove resources or media how do I remove it as I dont see a viable option.

    I have 3 modules to add to my site and each adds a navtab but I only wish for the navtabs to be added that I want from those 3 otherwise things are going to get pretty cramped.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It depends on the add-on and how it has been added.

    In the case of XFRM and XFMG, the tabs are added via code, so the only option is to modify the code via an add-on or hide them via CSS.
     
  3. Hecter

    Hecter Member

    I believe they are added through the listener files, so how do I actually hide them? I tried through extra.css but I'm not 100% on what I should be adding.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Add to EXTRA.css:
    Code:
    .navTabs .navTab.resources .navLink,
    .navTabs .navTab.xengallery .navLink
    {
        display: none;
    }
     
  5. Hecter

    Hecter Member

    Ok so I assume to hide this page: http://www.clubsgaming.com/forum/rivals/ from the navtab would be...

    Code:
    .navTabs .navTab.rivals .navLink,
    .navTabs .navTab.xengallery .navLink
    {
        display: none;
    }
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    You will need to use the browser inspector to see if the tab has a specific named class.

    I'm on my tablet so don't have any browser tools available to check.
     
  7. Hecter

    Hecter Member

    I'm not 100% on what I am looking for the browser says the link is
    <div id="content" class="yfl_rivals_index">

    Sorry to seem dense but is this what I am looking for? And if it is what am I actually putting on the code to remove it.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    This is the relevant code:
    upload_2016-1-31_20-26-5.png

    The class is therefore yfl_rivals.
     
  9. Hecter

    Hecter Member

Share This Page