• I’m building a theme with underscores which I’ve done several times without this ever happening before. For some reason, the primary menu, no matter how many I create, won’t update to what is in the Menu Structure view inside appearances->menus. No matter what I do all the pages created are showing up in the menu. If I delete the pages they go away, but that the best I can do.

    If I try to nest a page inside another to make it a subpage it shows that in the dashboard, but doesn’t affect the actual menu on the navbar.

    I have “Automatically add new top-level pages to this menu” unchecked.

    I haven’t made any changes to the functions.php file

    Any ideas? is there away to share my code? currently it’s on local on my computer using map, but I can put it on a domain if that helps.

    Version 4.9.7

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Hmm… I built a site on _s just the other day and did not have this problem. It may be you have a broken version, though. Download a fresh copy and see if that helps.

    Thread Starter aaron4osu

    (@aaron4osu)

    I uploaded this to a test server where you can login and see the problem.

    https://judaicamarketing.com/wp-admin/

    [redacted]

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Even if it’s a test sever, NEVER put a userid and password on these forums. You may know what you’re doing, but someone who sees you do it may do the same, with disastrous results.

    Take a look in ‘locations’ and compare the menu name you edited with the one showing for that menu location.

    I did a really nice menu the other month… it was perfect!! And it didn’t work…

    Turned out I was editing ‘nav_menu’ but using ‘menu1’ in the location.

    Thread Starter aaron4osu

    (@aaron4osu)

    I figured it out. the name of the main menu had changed in the underscores functions.php file and I was reusing old code for the wp_nav_menu function in the header file so the names didn’t match up with the register_nav_menus in the functions.php file.

    I ended up creating all new db, WordPress install, and theme before I found the problem ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trouble With PrimaryNav Menu’ is closed to new replies.