WordPress.org

Forums

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

  1. Eckstein
    Member
    Posted 2 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
    Member
    Posted 2 years ago #

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

  3. Eckstein
    Member
    Posted 2 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.

    Thanks!

  4. potentweb
    Member
    Posted 2 years ago #

    No problem!

    Brian

  5. spiritdreaming
    Member
    Posted 1 year 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 1 year ago #

    The conversation has long ended.
    Create your own thread.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.