• Resolved danny_getextra

    (@danny_getextra)


    Hi,

    Basically I’m trying to have two menu’s one for the footer and header.

    I’ve managed to successfully create a new one for the header but can’t seem to get the footer one to work.

    I’m know php guru, But i understand the basic’s

    link to website
    http://goo.gl/pAFm1

    // This adds more than one menu location
    add_action( 'init', 'paukai_register_multiple_menus' );
    function paukai_register_multiple_menus() {
        register_nav_menus(
            array(
                'header-nav' =>  'Header Navigation',
                'footer-nav' =>  'Footer Navigation'
            )
        );
    }
    
    	<?php wp_nav_menu( array( 'theme_location' => 'header-nav', 'container' => 'false' ) ); ?>
    		</nav><!-- #site-navigation -->
    
    <?php
        // begin modifications to add footer menu
        if ( has_nav_menu( 'footer-nav' ) ) {
        // a menu is assigned to the footer-nav location
        wp_nav_menu (
            array (
                'theme_location' => 'footer-nav',
                'container_id' => 'footer-menu'
            )
        );
        ?>
    
    This bit of code was already in, This is the function that comes with 2012 theme and pulls in the primary menu.
    
       // This theme uses wp_nav_menu() in one location.
    	register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) );

    [please be sure to use the code button – your code may have been damaged by the forum parser]

    Thanks guys

  • The topic ‘Menu Problems using 2012 theme as boilerplate’ is closed to new replies.