• 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


Well-known member
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?