How to create a Footer menu
I was struggle by how to insert a footer menu in my theme of wordpress, i was looking a plug-in , but anyone could help me around the web.
So i found a code to insert through "Editor" in "Theme Functions"
Add the following code to the functions.php file for your theme:
// This theme uses wp_nav_menu() in two locations. register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'twentyten' ), 'secondary' => __('Secondary Navigation', 'twentyten') ) );
Then... you can now create in Menu the "Secondary Menu"
And you will need to insert this code to display in the theme , you will insent into the footer.php
This is the code :
<nav id="footer-navigation" role="navigation">
<?php wp_nav_menu( array('menu' => 'footer' )); ?>
</nav>
You will have to create a new menu : called by preference "footer" to manage the menu to display in the footer of the theme. Remember that you can structure your footer menu
Please , any feedback to the community will be great for us ! :D
I hope to this article will be useful.
Recent Comments
11
If you are experiencing issues using PHP then this might be an alternate solution: How to put your Privacy Policy in the Footer
Hello, I followed all of your steps to make my Footer menu, but I don't see any change in my website. There is not a Footer section or menu.
What could be possible missing? Or what mistake maybe I did?
I wait for your answer. Thanks you for your post!
Will be needing more info to answer this. What theme are you using, is it a pro version? Some themes require a plugin. Do you have the same theme as the one above?
Hi, thank you for the info. I've just followed all the steps and the menu looks terrible, what have I done wrong?
Hi, Beto! Great Post ...I hope you can get published. I have NO idea what to tell you, but others below are already trying hard and coming up with good ideas!
I posted this comment earlier wondering why it is not showing up. I wanted to thank you for letting me know how to make a footer.
See more comments
Hi there, I am struggling for hours now how to create a footer. My theme is Tripitz and I have no option to create a footer. I already tried to create a footer at widgets but without success. I cannot proceed with my website if I don't get a solution. I have no idea what to do. I need some help please.