Navigation menus stopped appearing in any theme

  • Unknown's avatar

    Hello! I’m puzzled by a problem that just started, after I made no changes that I can recall. The Navigation menu on my site appears in the editor, but not when I visit my site in a regular browser window. This seemed to start out of the blue.

    A blank space appears in the layout wherever I move the navigation block, but nothing’s in it. It just appears like a line break.

    I’ve tried other browsers, making sure any extensions that block page elements are off, and changing themes. Whichever theme I select, the Navigation menu is always missing.

    I would greatly appreciate any ideas on resolving this. I’m baffled!

    WP.com: Yes
    Jetpack: No
    Correct account: Yes

    The blog I need help with is: (visible only to logged in users)

  • Hey @dg0452, that is quite odd! Would you feel okay with making a backup of the header code, then resetting that template part to see if that helps?

    You’d start here:
    https://legacymodeblog.wordpress.com/wp-admin/site-editor.php?path=%2Fwp_template_part%2Fall

    Click on the header. Choose Code. Editor, and you can select all / copy / paste into a text file for now. Then go back to the template part listing, and reset. You can paste your design back again after these tests, if needed.

    If that doesn’t work, I’d also recommend resetting the navigation itself and re-adding just the top-level links at first, testing, and then adding the drop-downs.

    Basically, we’re looking to reset in hopes the bug gets flushed out, but if it does not, please update us here.

  • Unknown's avatar

    Thank you for your reply and assistance! Unfortunately clearing the customizations from the theme still results in the navigation bar not appearing. Oddly, the same problem exists if another theme which by default has a nav bar is loaded, just an empty space appears in its place.

    Thanks again and have a great day!

  • Hi there,

    One thing I’ve noticed is that you have several tabs created in your menu that do not actually go to existing pages (yet) is it the case you are trying to set up your menu before you have created all the pages you need?

    The reason I ask is because by design menus can only show links to published content and are not able to function when they are entered as placeholders.

    Specifically I noticed your two dropdown menus has some odd text in the link URL setting that I think is causing issues. You can see it here in my screenshot:

    If you remove these tabs (any that are a placeholder and not linking to content) and save your changes does it allow the menu to appear?

    Oddly, the same problem exists if another theme which by default has a nav bar is loaded, just an empty space appears in its place.

    I could see an issue like this being a problem on more than one theme, so I’m hoping that removing those placeholders (especially the two “great here’s a link” tabs in the dropdowns) will help resolve this issue.

    Thanks!

  • Unknown's avatar

    Thank you for the great idea! Unfortunately, removing the placeholder items, removing both dropdown menus, and just leaving “About”, which links to a page which exists, did not restore the navigation bar.

    I believe the placeholders did not cause any difficulty a few weeks ago, I wonder if a WP update might have changed something?

    Thanks again for your assistance!

  • Thanks for giving that a try. After a closer look I suspect that the menu may have been corrupted for some reason so I deleted it and created a fresh menu. You should see it on your site header now.

    If this issue of the missing menu comes up again can you let us know? Also if you see it for a while but it disappears suddenly, try to recall what the last thing you did on your site was, and let us know as that may hold a clue.

    Thanks!

  • Unknown's avatar

    No problem! Thanks a ton; I’m glad you were able to fix it! Curiously, I made another menu at one point while troubleshooting, but neither appeared. However perhaps the invalid placeholder links also factored in.

    Will do, and thanks again!

  • The topic ‘Navigation menus stopped appearing in any theme’ is closed to new replies.