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

XF 2.0 Current sub navigation style


XenForo developer
Staff member
As in things like "new posts" etc? Those are never tracked as selected -- just the top level section is.


Active member
A bit of a hack but you could use the [attribute] selectors. Each of the sub-navigation links have a [data-nav-id]

So you could add something like the following to extra.less to style the individual links...

[data-nav-id="whatsNewPosts"] {
  color: red !important;
If you wanted to style a link on a specific page then you could use the <body> [data-template]

[data-template="news_feed"] {
    [data-nav-id="whatsNewNewsFeed"] {
        color: red !important;
eg. This makes the 'Your news feed' link red on this page: https://xenforo.com/community/whats-new/news-feed

Not sure if this would work for all the sub-navigation links. You would have to check.