Hello,
I want to change behavior of mobile nav menu. I have 5 items (for example) in menu and only one of them have its own page without subpages/submenu. Other 4 items are used only as category (no content). I want thoose items expandable in mobile menu when clicked directly. Now since they are empty cliking on them just close menu. To expand/view submenu user need to click on arrow which may lead to confusion. Any simple way?
I also use WPGlobus for multilanguage and added langage swithcer in mobile menu works weird too. When clicked directly it will just open same page with same language. In order to change that user need to click on arrow again.
Also how to add search/icon only on mobile nav and remove search field inside menu?
Hi Ladislav
Please edit the menu items for the categories you would like clickable and set the URL for each item to be a hash symbol : #
Let us know how you get on
Magus
Hi Magus
thanks this works. Now how about WPGlobe selector? One solution will be add this dropdown to collapsed menu just like in normal menu and remove it from inside. I also want as mentioned before add search icon to that div (mobile nav only) and also remove search field inside mobile nav.
Hi Ladislav Trojak
To remove the mobile search option please navigate to Appearance->Custom CSS and add the following
Unfortunately there is not much I can help with the WP Globus issue. Your best option would be to contact the author and see if there is any way to replace the active language link with a # so it behaves the same way as the other menu items. Adding it to a submenu would unfortunately make no difference as it would still behave the same.
Magus
Hi Magus
thanks i will try to find solution for WPGlobe. One more think. What custom css is needed to hide search icon from full nav only?
Hi Ladislav Trojak
You will not need CSS to hide the search icon on the main menu. You can achieve this by navigating to Appearance->Theme Settings->Navigation and disabling the Search in Menu option.
Magus