WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Twelve
Child Theme - header.php mod - custom menu disappears (1 post)

  1. HaHaYouSuck
    Member
    Posted 1 year ago #

    Hi, I have a modification to header.php I got elsewhere on this forum to move my header image above the menu. This works nicely in the original theme but my custom menu doesn't display when I try to do this in a child theme? What am I missing?

    thanks

    by the way the mod is as follows:
    move

    <!-- move menu -->
    <nav id="site-navigation" class="main-navigation" role="navigation">
    			<h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
    			<a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
    			<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
    		</nav><!-- #site-navigation -->
    <!-- move menu -->

    to just above

    </header><!-- #masthead -->

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.