1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you want premium products then purchase our VIP or SVIP plans
  3. Dont forget read our rules HERE Also anyone caught Leeching this content or Scamming will be banned on numerous networks.
    Dismiss Notice
  4. Dont forget we do not allow Multiple Accounts, so all of your accounts as well as your IP will be banned.
    Dismiss Notice
  5. Tired of Download Limits ? UPGRADE Today!
    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:
    1,143
    Trophy Points:
    113
    Gender:
    Male
    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>
    </ul>
    </div>
    </li>
    </xen:if>


    <!-- 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