I have used <?php wp_nav_menu(array('menu'=>'main menu'));?>
To display menu and submenu in wp theme, while integrating HTML theme to wp theme but it appears in single line.
I have used <?php wp_nav_menu(array('menu'=>'main menu'));?>
To display menu and submenu in wp theme, while integrating HTML theme to wp theme but it appears in single line.
You must be logged in to post a comment.
In your example, you are printing out a custom menu named ‘main menu’
Just to make sure, if you go to Appearance > Menus, can you confirm that you definitely have a menu named ‘main menu’ and that it has submenus in it?