1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Please donate today & help us with our growing server costs or buy premium for access to our premium products
    Dismiss Notice

FREE How To Add A New Tab In The Navbar

Discussion in 'Xenforo Template Mods & Extras' started by HAWK, Mar 21, 2016.

  1. HAWK

    HAWK Administrator Staff Member ADMIN

    Likes Received:
    Trophy Points:
    This will create a simple tab link in the navbar. No popup or submenu.

    Edit this template:

    Admin CP -> Appearance -> Templates -> navigation

    Add the red code, and change the blue parts appropriately:

    <li><a href="{xen:link 'find-new/threads'}">{xen:phrase whats_new}</a></li>

    <!-- mytab -->
    <li class="navTab PopupClosed"><a href="
    LINK" class="navLink">TAB LABEL</a></li>

    <!-- extra tabs -->
    <xen:if is="{$extraTabs}">
    <xen:foreach loop="$extraTabs" key="$extraTabId" value="$extraTab">
    <xen:if is="{$extraTab.linksTemplate}">

    While you can 'hard code' the LINK and TAB LABEL, ideally you should use xen:link and xen:phrase. For example, here is the proper code for the Account Upgrades picture above:

    <!-- mytab -->
    <li class="navTab PopupClosed"><a href="
    {xen:link account/upgrades}" class="navLink">{xen:phrase account_upgrades}</a></li>
    Last edited: Mar 21, 2016

Share This Page

Post thread