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

How to add a Page Tab in Navigation

Discussion in 'XenForo Questions and Support' started by Sagar, Nov 5, 2010.

  1. Sagar

    Sagar Active Member

    Well first and foremost, I searched the forum and went through some solutions given but they are not clear to me. Can anyone please explain me how do I add a Tab After

    Home -- Forum -- "HERE" -- Members

    Thanks
     
  2. Lawrence

    Lawrence Well-Known Member

  3. Sagar

    Sagar Active Member

  4. KozmoK

    KozmoK Active Member

    I too would like to add "User Upgrades" in the main Navigation Tabs. .
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> navigation

    Add this code:

    Code:
    		<!-- mytab -->
    		<li class="navTab PopupClosed"><a href="{xen:link account/upgrades}" class="navLink">{xen:phrase account_upgrades}</a></li>
    
    ...as shown below:

    Code:
    						<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="{xen:link account/upgrades}" class="navLink">{xen:phrase account_upgrades}</a></li>
    
    
    		<!-- extra tabs -->
    		<xen:if is="{$extraTabs}">
    		<xen:foreach loop="$extraTabs" key="$extraTabId" value="$extraTab">
    			<xen:if is="{$extraTab.linksTemplate}">
    
    This is the result:

    Screen shot 2010-11-08 at 11.41.25 AM.png

    It's the same code as above, except you would change the {xen:link account/upgrades} and {xen:phrase account_upgrades} for your purposes.
     
  6. KozmoK

    KozmoK Active Member

    Thanks! That worked perfect!
     

Share This Page