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

XF 1.2 Remove Members and Help from Navbar

Discussion in 'Styling and Customization Questions' started by Markos, Apr 25, 2014.

  1. Markos

    Markos Well-Known Member

    How can i do that?
  2. Chris D

    Chris D XenForo Developer Staff Member

    Edit them out of the navigation template.
    Amaury likes this.
  3. Markos

    Markos Well-Known Member

    What line i have to edit/remove?
  4. Chris D

    Chris D XenForo Developer Staff Member

    I haven't got the template code in front of me right now but I would start by looking at the template and looking for the words members and help.
  5. AndyB

    AndyB Well-Known Member

  6. Chris D

    Chris D XenForo Developer Staff Member

    I don't recommend installing add-ons for something that can be removed perfectly easily with editing the template.
    Amaury likes this.
  7. Chris D

    Chris D XenForo Developer Staff Member

    Edit the template navigation and remove this code:
            <!-- members -->
            <xen:if is="{$tabs.members}">
                <li class="navTab members {xen:if $tabs.members.selected, 'selected', 'Popup PopupControl PopupClosed'}">
                    <a href="{$tabs.members.href}" class="navLink">{$tabs.members.title}</a>
                    <a href="{$tabs.members.href}" class="SplitCtrl" rel="Menu"></a>
                    <div class="{xen:if {$tabs.members.selected}, 'tabLinks', 'Menu JsOnly tabMenu'} membersTabLinks">
                        <div class="primaryContent menuHeader">
                            <div class="muted">{xen:phrase quick_links}</div>
                        <ul class="secondaryContent blockLinksList">
                        <xen:hook name="navigation_tabs_members">
                            <li><a href="{xen:link members}">{xen:phrase notable_members}</a></li>
                            <xen:if is="{$xenOptions.enableMemberList}"><li><a href="{xen:link members/list}">{xen:phrase registered_members}</a></li></xen:if>
                            <li><a href="{xen:link online}">{xen:phrase current_visitors}</a></li>
                            <xen:if is="{$xenOptions.enableNewsFeed}"><li><a href="{xen:link recent-activity}">{xen:phrase recent_activity}</a></li></xen:if>
    Help hasn't been on the nav bar since before XenForo 1.2. If this is for before XenForo 1.2 then the code to remove should be very similar.

    If it's for after 1.2 and it is the Help link in the footer, edit the footer template and remove:
    <li><a href="{xen:link help}">{xen:phrase help}</a></li>
    Markos likes this.
  8. Markos

    Markos Well-Known Member

  9. TerryP

    TerryP Member

    A little shorter version:
    Make sure you have correct nodetab number.

    In Extra.css

    .navTabs .navTab.nodetab3
    display: none !important;

Share This Page