XF 2.2 Help if possible navbar behaviour

Brad P

Well-known member
When i click on forums, Articles and members is shows the text in white (that is fine) see below but when i click on "Badges it does not, has anyone got a solution to make it display
1604505257266.webp

badges
1604505285273.webp
 
It seems to not be behaving as current tab

whatever page it is opening probably needs the navigation ID at the top so check what it is for badges and add it in here

Code:
<xf:page option="section">navigation_ID</xf:page>
And add that to the page or template
 
Last edited:
Thank you @Mr Lucky ill take a look into this.

Yes this is real easy to do. @Mr Lucky is right. I also do this for whats new tabs so they page over as well.

Simply go to the pages template where the page xenforo code is and place this code in it:

HTML:
<xf:page option="section" value="whatsNew" />

Stick that anywhere on the page. I don't think it matters where but preferably somewhere up top should do fine. Where it says value, simply put in the data-nav-id value for the navigation item. You can find that in inspect element. The data-nav-id for whats new on my site is "whatsNew" so I added that to whats_new_posts and so forth so that it would tab over when clicking on it. I hope you get this working
 
Back
Top Bottom