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

Help with Navigation bar active tab.

Discussion in 'Styling and Customization Questions' started by Ben McGarry, Apr 3, 2012.

  1. Ben McGarry

    Ben McGarry Member

    Ive just added two tabs to the navigation bar on my forums using this code:

    HTML:
    <!-- mytab -->
            <li class="navTab PopupClosed"><a href="LINK" class="navLink">TEXT</a></li>
            <li class="navTab PopupClosed"><a href="LINK" class="navLink">TEXT</a></li>
    But when i click on them it doesn't select them. For example when you click Forums at the top on here it changes into another colour, so it clearly shows its selected. How can i do this with that code above? It doesnt naturally do it.

    Thanks
     
  2. Floris

    Floris Guest

    LINK has to be a page, so it "can" be selected.
    You can then have a route, and have a selected tab for that route.
     
  3. Ben McGarry

    Ben McGarry Member

    This is the code im using fully

    HTML:
            <!-- mytab -->
            <li class="navTab PopupClosed"><a href="{xen:link pages/vote}" class="navLink">Vote For Us!</a></li>
            <li class="navTab PopupClosed"><a href="{xen:link pages/servers}" class="navLink">Servers & Chat</a></li>
    But that doesnt make it show as selected... it just keeps Forums selected.
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. Ben McGarry

    Ben McGarry Member

    Thanks for that :) all fine now.
     

Share This Page