Mobile menu backwards
-
Hello,
I made the menu: Home – Blog – Vision – About me – Contact (desktop: horizontal)
But if I go the mobile view (is vertical) I see the menu backwards:
– Contact
– About me
– Vision
– Blog
– HomeCan someone help me to change the order of my mobile menu?
I think something has to be modified in the header.php, below the part about the menu:
<ul class=”blog-menu”>
<?php if ( has_nav_menu( ‘primary’ ) ) {
wp_nav_menu( array(
‘container’ => ”,
‘items_wrap’ => ‘%3$s’,
‘theme_location’ => ‘primary’,
‘walker’ => new hemingway_nav_walker) ); } else {
wp_list_pages( array(
‘container’ => ”,
‘title_li’ => ”));
} ?>
<div class=”clear”></div>
<ul class=”mobile-menu”>
<?php if ( has_nav_menu( ‘primary’ ) ) {
wp_nav_menu( array(
‘container’ => ”,
‘items_wrap’ => ‘%3$s’,
‘theme_location’ => ‘primary’,
‘walker’ => new hemingway_nav_walker) ); } else {
wp_list_pages( array(
‘container’ => ”,
‘title_li’ => ”));
} ?>
- The topic ‘Mobile menu backwards’ is closed to new replies.