I am new to wordpress, and i am developing a custom theme, while i have registered a navigation menu in the theme. But the menu is showing automatically on the page while there are no items in the menu i have created from wordpress admin panel.
register_nav_menu( 'headerLocationMenu', 'Header Menu Location' ); // functions.php
wp_nav_menu( array(
'theme_location' => 'headerMenuLocation',
'container' => 'ul',
'menu_class' => 'navbar-nav ml-auto',
)); // template file code
Am I doing anything wrong?
Thanks in advance.