How do I move the nav menu below the header image?
-
How do I move the navigation menu to below the header image? The only instructions I can find out there are for twenty-twelve. I’ve tried to follow those instructions as best I can – its header.php is coded differently from Misty Lake – but I end up breaking the blog. I’m missing something.
Near as I can tell, these two pieces of code need to be swapped, but where does the nav code actually end and exactly where should it be placed below the header image code?
<nav id="nav" role="navigation" class="site-navigation main-navigation"> <h1 class="assistive-text screen-reader-text"><?php _e( 'Menu', 'mistylake' ); ?></h1> <div class="assistive-text skip-link screen-reader-text"><a href="#content">"><?php _e( 'Skip to content', 'mistylake' ); ?></a></div> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> </nav><!-- .site-navigation .main-navigation --> </header><!-- #masthead .site-header --> <div id="main" class="site-main"> <?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) { ?> <div class="header-image"> <a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /> </a> </div> <?php } // if ( ! empty( $header_image ) ) ?>
My site is https://justvintagehome.com
Thanks
[Moderator’s note: fixed code tags]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How do I move the nav menu below the header image?’ is closed to new replies.