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

XF 1.4 Giving focus to custom tab on the navbar

Discussion in 'Styling and Customization Questions' started by imthebest, Aug 14, 2014.

  1. imthebest

    imthebest Formerly Super120

    Following @Jake Bunce's guide located here I have created a new tab by placing the following code on the navigation template:

    <li class="navTab {xen:if $extraTab.selected, 'selected', 'Popup PopupControl PopupClosed'}">
    <a href="{xen:link 'find-new/posts'}" rel="nofollow" class="navLink">{xen:if $visitor.user_id, {xen:phrase new_posts}, {xen:phrase recent_posts}}</a>
    However when I click on the tab it doesn't get the focus. Is it easy to give it the focus?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    It requires an add-on to focus the tab.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page