Answer the question
In order to leave comments, you need to log in
How to assign active class to parent menu item when child resource in pdoMenu is active?
Good afternoon, gentlemen, I'm displaying pdoMenu on modXRevo and I ran into this question, how to assign the class of the active menu item to the parent element when the child is active?
Here is the menu, maybe I just forgot to specify something? the documentation could not help, I humbly ask for help
Answer the question
In order to leave comments, you need to log in
pdoMenu assigns the class "active" to all parent elements by default (default) if the child is active. Here is an example from one of the sites:
You needlessly specify the "active" class in the output templates, there are special CSS class parameters for this, see the documentation:
https://docs.modx.pro/komponentyi/pdotools/snippet...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question