Parent/Submenu Indicators
-
Hi there! First off, amazing plugin; the complexity of customization is a little overwhelming at first, but the more I experiment, the more impressive it is.
That said, I’m building a menu style and am struggling with one component – I want all top-level pages with submenus to show an indicator beside them. So for the following menu:
Page A >
Page B >
Page CPages A and B have submenus/children, Page C does not.
The current settings are as follows:
Primary: Branch (Current Item)
Secondary: Starting at: the Branch (Item), For Depth: 2 levels
Inclusions: Branch Ancestors: to level 1 (root); Branch Siblings Level 1 and above
OR
[cmwizard menu=N title=”Widget” branch=current depth=2 ancestors=1 include_level=”1-” siblings=1 contains_current=”primary”/]Right now the menu is functioning exactly as desired, except the indicator appears only when a page with children (or one of the child pages) is current. Per the menu example above, I only see the indicator beside Page A if I am ON Page A or one of its children.
My CSS is targeting (li.menu-item-has-children > a:after) to add the indicator, but it appears that this class is not being added to the other parent pages in the menu.
I have to think this is possible and not too unusual a behavior for the menu, I’m just strugging. Hopefully I have explained this correctly, by all means let me know if you need more info.
- The topic ‘Parent/Submenu Indicators’ is closed to new replies.