Duplicate active class in menu for news and events

Hello,

I am using the events calendar pro plugin to build a custom theme with sage, iv’e hit a small problem I can’t seem to figure out and i’m hoping maybe someone can help point me in the right direction.

My primary menu includes “news” for the blog and “events” for the calendar. When I select the news page the active class is only applied to this link, however when I select the events page the active class is applied to both the events page and the news page. The result is two active classes on the menu.

I assume this has something to do with the is_singular() function in the roots nav menu class. Is there any easy fix so that I don’t get the duplicate active class in my menu?

Thanks guys :slightly_smiling: