3

I am not able to see any menus I added in my website back-end and even I am not able to create a new menu. Though the menu I created earlier is showing.

Please guide me on how I can make it visible so that I can add new pages in main menu. Let me know where I can share my website so that you can help me out. I look forward to hearing from you.

Thanks!

Here is the back end ![Back end Appearance>menu

Here is the front end Front end menu

2
  • Please share what have you done so far.
    – Laxmana
    Feb 22, 2017 at 9:46
  • I have added the images of what I have Feb 22, 2017 at 9:54

1 Answer 1

3

If you created the theme yourself, you should take a look at the WordPress Codex. They have a section called Navigation Menus. It contains all information you need about registering your menus the right way, so they are customizable.

To Keep things short:

Add this code to your theme's functions.php to register your menu:

function register_my_menu() {
  register_nav_menu('header-menu',__( 'Header Menu' ));
}
add_action( 'init', 'register_my_menu' );

Then place this in your theme at the place your menu needs to be:

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

Change names where needed.

If did not create the theme yourself. Then ask the theme author to implement the menu in the right way.

You can also create a Child Theme and edit the (purchased) theme yourself. Then create two files. The first file should be functions.php and add the above code to it. Then duplicate the theme file where the menu is located (probably header.php). And change the menu code to the code above.

10
  • Thanks for the response Xvilo. I think the problem is not with the theme because I activated another theme and the issue is still the same. I also deactivated all the plugins. This issue just came out of the blue Feb 22, 2017 at 10:15
  • Can you confirm it did work before? Try changing to the WordPress default theme Twenty Seventeen. If you can see it here, it is definitely your theme ;)
    – xvilo
    Feb 22, 2017 at 10:16
  • Yes, I changed the theme to WordPress default theme Twenty Seventeen but I still see no changes Feb 22, 2017 at 10:21
  • I did take a look at your screenshot again and it seems everything is working fine. You have to create a menu first. Just type your menu name in the input field: puu.sh/uewUb/71668b13d9.png. Then press 'create menu' on the right side of the text button. After that you can create your menu.
    – xvilo
    Feb 22, 2017 at 10:22
  • 2
    Did you ever solve this? I had the same. I have created a menu, it shows in frontpage, but not in admin.
    – Lenne
    Dec 11, 2018 at 8:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.