XF 1.4 Giving focus to custom tab on the navbar

imthebest

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:

Code:
<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>
</li>

However when I click on the tab it doesn't get the focus. Is it easy to give it the focus?
 
Top Bottom