WordPress.org

Ready to get started?Download WordPress

Forums

Footer menu issue (2 posts)

  1. skeeterz71
    Member
    Posted 4 months ago #

    Hi,

    I registered a new footer menu in functions.php

    register_nav_menus( array(
    		'secondary' => __( 'Footer Menu', 'skeeter' ),
    	) );

    It shows up in appearance > menus

    I place it in my footer:

    <?php wp_nav_menu(array('secondary' => 'Footer Menu'));?>

    I create a new footer menu in admin. Assign it to my new footer and it still shows the main nav menu. I don't know what I am doing wrong.

    Thanks

  2. skeeterz71
    Member
    Posted 4 months ago #

    Nevermind I didn't have it registered right. Should of been registered this way.

    register_nav_menus( array(
    		  'primary' => __( 'Primary Menu', 'skeeter' ),
    		  'secondary' => __('Footer Menu', 'skeeter')
    		) );

Reply

You must log in to post.

About this Topic

Tags

No tags yet.