Help with applying style to menu levels when activated
hello, I have a pre-written function provided for use to apply styling to a multi-level menu, which is something like ParentMenu->ChildMenu1->ChildMenu1.1, where the ChildMenu1.1 is level 2 (since I started with level 0 for ParentMenu onwards), and here it is linked to a page.
The function attached in the txt file is the one which am concerned with, more specifically with the part below:
This part is working well if we follow the schema of the menu mentioned above, however, if I have something like ParentMenu->ChildMenu1 only, where the child menu is linked to a page, it is not applying the style to add the "parent-active" class to this child menu.
Anyone can help me troubleshoot this code pls so that I can add this styling in such cases?
May be the answer is right infront of the eyes but am failing to see it so far
Last edited by lordrt21; June 4th, 2013 at 08:11 AM.