[resolved] [closed] Add a custom menu to footer (6 posts)

  1. Eckstein
    Posted 3 years ago #

    I am using a child theme of twenty eleven and have removed the footer widgets from footer.php so that I can create my own custom footer using a large image and a few divs.

    This means I cannot use the custom menu widget to display the menu (also because even if I did, it won't layout properly.)

    I want to add the php code for the custom footer menu directly to the footer file of my theme. Can someone explain to me how to do that?

    Mostly the problem I'm having is how to tell wordpress which custom menu to use in the code.

  2. potentweb
    Posted 3 years ago #

    <?php wp_nav_menu( array('menu' => 'What Ever It Is Called' )); ?>
    Try that.

  3. Eckstein
    Posted 3 years ago #

    Thank you, that worked! I was trying to use the menu ID instead of the actual menu name. I was looking for something that looked like a slug (with no spaces or anything) but apparently that doesn't matter inside the function.


  4. potentweb
    Posted 3 years ago #

    No problem!


  5. spiritdreaming
    Posted 2 years ago #

    is this the same code for twenty twelve and does it matter where i place the code in the editor??

  6. Andrew
    Forum moderator
    Posted 2 years ago #

    The conversation has long ended.
    Create your own thread.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.