wp_nav_menu container style args

See if I correctly understand your meaning. For argument details, you may wish to refer to wp_nav_menu() When you call the menu, you may add the following arguments: wp_nav_menu(array( ‘theme_location’ => ‘primary’, ‘container’ => ‘div’, // default is div anyway, you set it false because you want to add ID, right? ‘container_id’ => ‘container_id’, // … Read more

Change hover to onclick on menu

Just found how to do it. The solution is very simple, it all was just about playing around the “slideToggle” function on the same object I was working on in the main question. Only one problem won’t disappear, if I click once, and then mouseout, the submenu will be open-able via hover. You’re forced to … Read more

How to change the URL of sub menu page?

As per the requirement in the comments, one way to do that rewrite is with .htaccess. This may be possible with WordPress rewrite functions too, but I find .htaccess easier as there are some constraints with the WordPress functions. If your WordPress installation is at http://localhost/wordpress then your .htaccess should be in the wordpress directory. … Read more