wordpress menu organization went wrong

106 views Asked by At

Picture 1 Menu Organization order

Picture 2 appears in this way Picture 3

My function code Picture 4 my header.php

I want to organize my menu order in the way picture 1 shows but it appears in the way picture 2 shows picture 3 has my functions.php and picture 4 has my header.php file

2

There are 2 answers

0
Mitesh On BEST ANSWER

I forgot to click on the option saying "Header menu " after clicking on that it works fine !! enter image description here

You also forget to edit organize the menus go to admin and organize theme by drag up and down

0
Rajendran Nadar On

This should be in the header.php

wp_nav_menu( array( 
  'theme_location' => 'nav-menu'
) ); 

Code in function.php

register_nav_menus( array( 
  'nav-menu' => esc_html__( 'Nav Menu', 'themename'), 
) ); 

This is the proper way to make a navbar in wordpress.