• Hey guys,

    I’m kinda new to wordpress and I’ve been doing so much research actually. However, I’ve had a hard time adding a custom menu at the footer. I figured out that you need to use a child theme and such. So I downloaded the writee child theme and activated it but I don’t know how to add another menu at bottom. I was hoping to put a contact us, terms & conditions, privacy policy menu at the bottom.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello jdmendame,

    Follow below steps:

    1. Add below code into your current active child theme’s functions.php file.

    
    function register_footer_menu() {
     register_nav_menu('footer-menu',__( 'Footer Menu' ));
    }
    add_action( 'init', 'register_footer_menu' );

    2. Add below code into current active child theme’s footer.php file where you want to show menu.

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

    3. Now set Footer Menu from DashBoard >> Appearance >> Menus

    Check How to Register a Menu in WordPress tutorial.

    Hope this will helps you.

    Thanks!

    Thread Starter jdmendame

    (@jdmendame)

    Hello, thanks for the reply. However, I’m still not able to do it. When I put it in my functions.php in my child theme, the code literally shows on my website. Also, how do I add a footer.php folder on my child theme? Only functions.php and css style sheet are found on my child theme.

    Noob here!lol

    Thanks

    Thread Starter jdmendame

    (@jdmendame)

    OMG..it worked..I pasted the code in the wrong area..haha.. got this problem solved already! Thanks for the tip! PS: I also learned how to add a new file to the childe theme.. Here’s the code that you need to paste in the functions.php of your child theme if you want to add like another file directory.

    touch( get_stylesheet_directory() . ‘/header.php’ );

    Just change “header” into the name that you want, for me, I changed it to footer so I can paste the code above into this file.

    AddWeb Solution

    (@addweb-solution-pvt-ltd)

    @jdmendame, Good to see that our provided solution worked for you. Can you please mark as “Accepted Solution” to make my put in efforts worth.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘adding a footer menu using a child theme’ is closed to new replies.