• Hi there!

    I’m trying to add a custom menu to my footer by adding a widget to the footer 1-4 sections. A menu does display, but it is not the right one (the primary menu shows up).

    For your information:

    I registered a menu with the following code:

    function register_my_menus() {
      register_nav_menus(
        array(
          'footer-menu' => __( 'Footer menu' ),
        )
      );
    }
    add_action( 'init', 'register_my_menus' );

    Thereafter I created a new menu through appearance > menu’s , selected my menu location en saved it. Then I created the custom menu widget in the footer and selected the menu. To check if it showed up without using the widget I pasted this code in my childtheme’s footer.php:

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

    But that still doesn’t do the trick. What am I overlooking?

    Hope you can help!

    Kind regards Eline

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author HashThemes

    (@hashthemes)

    The code seems fine. But to add the menu in the footer, you don’t need to register menu. There is a menu widget. Just drag the widget in the desired widget area and select the menu. This should do your job easily.

    I did add the widget to the footer, but, as I wrote, that does not work. The primary menu keeps showing up!

    Theme Author HashThemes

    (@hashthemes)

    Hi,

    Just tested with the latest version of the theme regarding the issue you mentioned and it is working properly without any problem.

    We suggest you to disable all the plugins and check once again. May be some of the plugin is creating this issue.

    If it still does not work then please do email us your credential at [email protected] , we will try our best to find the problem and fix it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Footer menu displays wrong menu’ is closed to new replies.