Timeline for clickable toggle menu, help
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 8, 2018 at 13:24 | comment | added | RiddleMeThis | No problem, Your welcome. | |
Dec 7, 2018 at 21:53 | vote | accept | mademoiselleflo | ||
Dec 7, 2018 at 21:15 | comment | added | RiddleMeThis | Keep the menu open when you go to a new page? That is beyond the scope of this question. I would mark this as answered and start a new question. You can do that with CSS though since WP is adding a "current-menu-parent" class to your active list item. | |
Dec 7, 2018 at 21:12 | comment | added | mademoiselleflo | perfect, many thanks, this is so kind of you. is there also a way to keep the clicked section open after clicking on a specific page? | |
Dec 7, 2018 at 20:54 | comment | added | RiddleMeThis | I updated the answer to include a solution where the parents are linkable | |
Dec 7, 2018 at 20:53 | history | edited | RiddleMeThis | CC BY-SA 4.0 |
added 730 characters in body
|
Dec 7, 2018 at 20:05 | comment | added | mademoiselleflo | container.find( '.menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' ); // Toggle buttons and submenu items with active children menu items. container.find( '.current-menu-ancestor > button' ).addClass( 'toggle-on' ); container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled-on' ); | |
Dec 7, 2018 at 20:01 | comment | added | mademoiselleflo | Thank you!! I'm trying the second method and it works great, but then I cannot click on the "children links", this is the part that I'm removing: | |
Dec 7, 2018 at 19:20 | history | edited | RiddleMeThis | CC BY-SA 4.0 |
added 471 characters in body
|
Dec 7, 2018 at 18:57 | history | answered | RiddleMeThis | CC BY-SA 4.0 |