change menu dropdown button
-
i have a menu like this: screenshot (in a child theme)
as the item “paint” has no content (it is no page, just a link to nowhere), it would be better if a click on the name would also toggle the dropdown.
so if i click on “paint” the same thing would happen than if i click on the dropdown button.
i tried to modify this line in the functions.js
container.find( '.menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' );
but could not find out how to do it correctly.the “paint” could ideally be the name of the button and no
<a>
element anymore.i hope anyone understands what i am into ?? any help is very welcome!
- The topic ‘change menu dropdown button’ is closed to new replies.