Open menu on click not hover

I know this is probably really simple, but I haven’t been able to find an answer. I have a menu on my site that I would like submenu’s to open when the main menu item is clicked on, but not hovered over. I believe there are some plugins that can do this, but would like to know how to do this with code. Thanks in advance for any help.

1 Comment
  1. You can unbind the hover action with jQuery, add an on click function to your menu or menu item and show the submenu within that function.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer