• i have created two menu in my website, one is main menu and other is footer menu.how do i prevent pages of main menu to appear in footer menu.plz help i am new to wordpress
    function.php

    (`if ( function_exists( ‘register_nav_menu’ ) ) {
    register_nav_menu( ‘sec-menu’, ‘footer menu’ );

    register_nav_menu( ‘main-menu’, ‘Main Menu’ );

    }`)

    style.css
    (`.bottomMenu { display: block; width:960px;}
    .bottomMenu ul { list-style-type:none;display:inline-block;vertical-align: middle;margin-right: 15px; float:right;}
    .bottomMenu li { list-style-type:none; display: inline-block;vertical-align: middle; margin-right: 15px; font-size: 12px; }
    .bottomMenu li a {
    display: inline-block;
    vertical-align:middle;
    margin-right: 15px;
    color:#000;
    line-height:20px;
    text-decoration:none;
    font-weight:normal;
    padding: 0 7px 0 3px;

    }
    .bottomMenu li a:hover { color:#ccc; text-decoration:underline;}`)

Viewing 2 replies - 1 through 2 (of 2 total)
  • If I understand you correctly, you want different pages in the header and footer menus.
    In theme “twenty-twelve” I use

    function my_theme_setup() {
    
    	// Register new footer menu
    	register_nav_menu( 'secondary', __( 'Footer Menu', 'twentytwelve' ) );
    
    }

    to register a second menu for the footer.

    It may give the same result as your code. Then go to (in the dashboard) Appearance-> Menus-> Edit Menu(tab) and choose your menu from the drop down tab and check which pages etc you want in the menu, click add to menu, and save the menu, for each menu.

    And go o the ‘Manage Locations’ tab to assign menu to location
    M

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘different menu pages in main menu and footer widget menu’ is closed to new replies.