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

Removing Members and Help tabs from nav?

Discussion in 'Styling and Customization Questions' started by eod, Nov 5, 2011.

  1. eod

    eod Active Member

    Hello :)

    I was wondering if someone could explain to me what the best way to remove the navigation links for members and help would be? Is there a way to do this in the admin area or is there a mod that makes this easier?

    Thank you very much!
     
    PASS likes this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the navigation template and remove the members and help sections.
     
  3. ragtek

    ragtek Guest

    Because i hate template edits (because of missing automatic template edit merging on xf upgrades) i would suggest to use the event system for this.

    edit:
    see next post;)
     
  4. ragtek

    ragtek Guest

    ;)
     

    Attached Files:

  5. James

    James Well-Known Member

    because I also hate template edits but don't particularly like executing PHP purely for removing tabs, I recommend adding this to EXTRA.css:

    Code:
    li.navTab.members, li.navTab.help{
    display: none;
    }
    
    ;)
     
  6. eod

    eod Active Member

    Thanks! You guys make this a great support forum.
     
  7. Brendon Meynell

    Brendon Meynell Active Member

    Awesome work. Great addition and VERY basic which is even better haha.
     
  8. Digital Doctor

    Digital Doctor Well-Known Member

  9. XenStyle

    XenStyle Active Member

    Is there anyway to remove these from the nav bar while still keeping the list items? I will still be using the pages, just not on my top navigation bar.

    help1.png


    help2.png
     
  10. Morgain

    Morgain Well-Known Member

    Elegant.
    Is it possible to make this conditional on logged in members so they see it but not unreg/ not logged in
    - I dont think I can put a conditional in EXTRA.css can I?
     
  11. James

    James Well-Known Member

    Create a new class called display or whatever, add the display: none and then make a template edit in the nav and only apply the class to unregistered.
     
    Morgain likes this.
  12. Morgain

    Morgain Well-Known Member

    Thanks James .. maybe I'm lacking sleep but I'll need a bit of translation.
    Create a class?
     
  13. Andrej

    Andrej Well-Known Member

    Morgain likes this.
  14. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The secondary links are bound to the selected tab. If the tab is removed then the secondary links will not be there.

    Two options:

    1) Hide the tab only when it's not selected:

    http://xenforo.com/community/threads/move-menu-items.20654/#post-263851

    2) Use the NodesAsTabs addon to reassign those pages to a new tab or an existing tab:

    http://xenforo.com/community/threads/moving-links-into-a-drop-down.43195/#post-464963
     
    Shelley and Morgain like this.
  15. mcloud

    mcloud Member


    not work for XenForo 1.2.5
     
  16. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It should. Try using !important.

    Code:
    li.navTab.members, li.navTab.help{
    display: none !important;
    }
    
     
  17. veraderock

    veraderock Member

    I know this is an older thread, but just my two cents.. I use a Template Modification with the following:
    template: navigation
    search: <xen:if is="{$tabs.members}">
    replace: <xen:if is="0 && {$tabs.members}">

    Note that this uses the template modification feature, so you are _not_ actually modifying templates directly.
     
  18. NinaMcI

    NinaMcI Active Member

    Hi,
    I have a custom navTab on my forum which I'm struggling to hide using the above CSS. In the Page source view, it appears like this:
    Code:
    <li class="navTab PopupClosed"><a href="study_buddy/" class="navLink">Study Buddy</a></li>
    What CSS should I use to hide this link from my navigation bar?

    Thanks for your help :)
     
  19. Brogan

    Brogan XenForo Moderator Staff Member

    How has it been added?

    If it has just been added by manually editing the navigation template, you can edit it out again.
     
  20. NinaMcI

    NinaMcI Active Member

    I've looked at the navigation template and can't find it added manually.
     

Share This Page