XF 2.2 Main Menu Does Not Highlight Resources Category

LenKaiser

Active member
Hi, I'm having an issue with my resource categories highlighting in the main menu. I've tried the info here: https://xenforo.com/community/threads/menu-items-sub-categories-resources.193332/#post-1530198 and it does not work and I guess since its marked solved no one is looking at it.

Here is a screen shot, all the "tabs" highlighted in yellow are actually categories in the resources area although when you click on them the tab does not highlight. The resources tab would highlight instead. How do I get each tab to highlight when its in that category?

example.webp

Here is the code I tried from the other thread:

<xf:if is="$xf.uri == link('resources/categories/traders.19/')">
<xf:page option="section">categoryNineteen</xf:page>
</xf:if>

This does not seem to work no matter where I put it in the template listed. Also do you put this code at the top or bottom?
 
Top Bottom