Snippets: 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; }

Snippet Type: PHP

Posted Under: Menu

All PHP snippets should be added via a child theme's functions.php file.