Highligh 2nd level menu when hovered over 3rd level

Hi, I added third level menu to my main-menu according to this this tutorial.
Example menu:
dropdown
-category1
–subcategory1
–subcategory2
–subcategory3
-category2

So when hover over category1, subcategories are shown.
What I want to achieve is that when hoverd over any subcategory, that I will still have the main category highligted, so the customer knows which category is he browsing.
Also when already subcategory is clicked and products are being shown and he goes again to navigation that according category and subcategory are still highligted.

Thanks for any advice.

Hi @gularis,

I hope you are well today and thanks for posting here.

Could you please share me the page URL from your site where it’s not working correctly so that i can troubleshoot it?

Kind Regards,
Movin