Add a custom footer menu in a WordPress Theme

Put this code in your functions.php

register_nav_menus(
  array('footer' => __( 'footer-menu', 'THEME_NAME' ),)
);

Then go into WordPress and add a new menu. Call it “footer”.

Then on the left side, you’ll now see a drop-down menu to set a footer menu. Select the “footer” menu you just created.

Finally, go to your footer.php file and call the menu using the following code:

<?php wp_nav_menu( array( 'theme_location' => 'footer' ) ); ?>

About bentedder

Ben Tedder is a front-end web developer. He loves WordPress, SharePoint, and Drupal, along with jQuery, CSS, and good 'ol HTML. +Ben Tedder on Google or follow @bentedder

Comments

I try to respond personally, but things get busy sometimes :)
  1. Tutul says:

    thanks for yionour informat

  2. Mariano says:

    Thanks !

  3. Monica says:

    Thanks a bunch!!! Saved me a lot of time.

  4. Lara says:

    Thanks it works perfectly!!!

Join the discussion!