• Hi, Does anyone know how I can add a footer menu. I have tried to edit the functions.php file in my child theme but it just make sthe site go blank and not display anything.

    I found a tutorial to add this to my footer.php

    <div class=”bottomMenu”>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’ ) ); ?>
    </div>

    and then add this

    // This theme uses wp_nav_menu() in two locations.
    register_nav_menus( array(
    ‘primary’ => __( ‘Primary Navigation’, ‘twentyten’ ),
    ‘secondary’ => __(‘Secondary Navigation’, ‘twentyten’)
    ) );

    So I did that and I am using the adamos them so I changed twentyten in the 2 instances above to adamos. When I copy the functions.php file back to my child them, the site is blank.

    Does anyone know why?
    Thanks treis

Viewing 3 replies - 1 through 3 (of 3 total)
  • If the theme footer is widgetized you can just use a custom menu widget via Appearanace > Widgets > Custom Menu

    Thread Starter treis32

    (@treis32)

    Thanks for getting back to me. No the menu isn’t in a widget. What I was trying to do is to add a secondary menu into the theme functions.php. I thought I would need to add the updated theme file to my childtheme folder but when I was doing that the site went blank. I was able to change the functions.php file and replace the main theme file but I am not sure how that will go during a word press upgrade. that will get overwritten won’t it?

    Do I need to have my functions.php page in the child-theme folder if I have made changes to it?

    This is what have working now. The footer menu down the bottom is what I was working on

    https://www.authenticarganoil.com.au/

    Sorry I misunderstood you question.

    I thought I would need to add the updated theme file to my childtheme folder

    That is the correct way of doing it

    I was able to change the functions.php file and replace the main theme file but I am not sure how that will go during a word press upgrade. that will get overwritten won’t it?

    It wont be overwritten by a WordPress upgrade, but that will happen if you update the them.

    Do I need to have my functions.php page in the child-theme folder if I have made changes to it?

    This would be the best option. Your child theme functions.php should be a duplicate of the parent theme file. Start with a blank file and add only the new code (if you parent theme functions.php has the opening ‘<? php’ or closing tags then make sure you child one follows that convention)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add a footer menu’ is closed to new replies.