Skip to content

Snippet: Mobile Menus Force Clicking on Link Instead of Arrow

By default in mobile menus you click on the arrow to open the dropdowns leaving room on the side if you have a custom link on the parent item so it can also be clicked. If you don't want any links on the parents and have the subitems open when clicking the whole link you can use this CSS for that.

.wpex-open-submenu { width: 100% !important; }
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top