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

XF 1.2 custom link on top nav bar

Discussion in 'Styling and Customization Questions' started by florencia, Mar 14, 2014.

  1. florencia

    florencia Active Member

    which template is the top navigation bar where forum, members, etc are located? I need to add an external link in there. Thanks.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Edit the navigation template.
     
  3. florencia

    florencia Active Member

    Looks difficult to edit, where and how do I add an external link (www.external.com) in the code so that its position after the other links forums, resources, etc
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Copy the HTML and CSS of an existing link, adapting it to suit.
     
  5. florencia

    florencia Active Member

    Like this? should I put the xen if?

    <!-- external links -->
    <xen:if is="{$tabs.extrenallinks}">
    <li class="navTab members {xen:if $tabs.members.selected, 'Popup PopupControl PopupClosed slee', 'Popup PopupControl PopupClosed'}">
    <a href="http://www.external.com" class="navLink accountPopup NoPopupGadget" rel="Menu">external link</a>
    </li>
    </xen:if>
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    The conditional statement does not apply to your custom tab link.
     
  7. florencia

    florencia Active Member

    so just like this? the class navTab is ok or should I use another class?

    <!-- external links -->
    <li class="navTab members">
    <a href="http://www.external.com" class="navLink accountPopup NoPopupGadget" rel="Menu">external link</a>
    </li>
     

Share This Page