SEOSTUDIO™

How do I restore the correct header menu after switching WordPress themes?

Find the Navigation block in the header used by the affected template. Select the intended saved menu. If the site moved from a classic theme and its old menu is available, import a copy and test its destinations before publishing.

What does the problem look like?

A small business switches themes and the header suddenly lists every public Page. A landing page may still look right because it uses a different template part. A desktop preview can also hide an unusable mobile submenu.

Before you make changes

Record the current menu and header names, sample URLs, expected destinations and menu nesting. Use a role with theme-editing access. Take a recoverable database and files backup and test changes in private staging.

Step-by-step troubleshooting

  1. Build a short route matrix

    Compare the homepage, one service Page and one post as a signed-out visitor. Record the exact links, including one nested link, and which route exhibits the problem.

  2. Identify the theme editing mode

    For a block theme, open Appearance → Editor. For a classic theme with menu locations, open Appearance → Menus and compare its location assignment instead. Ask the site owner if you lack the relevant permission.

  3. Inspect the template part

    Open the affected template and use List View to reach the header’s Navigation block. Check whether the header contains a Page List, custom links or an existing navigation menu.

  4. Select the intended navigation

    In the block’s menu options, choose the saved menu whose targets match the approved list. For an available classic menu, import it and review the resulting independent block menu.

  5. Review the save dialog

    Check which navigation and template parts will be saved. When an unrelated header or footer is listed, go back and isolate the change before approving it.

  6. Exercise both layouts

    Open the three public routes, expand the narrow-screen menu and follow a second-level item. Check that keyboard users can open, move through and dismiss the navigation and that the footer links still match the baseline.

Worked example

A museum in Oregon finds that its exhibit pages show the visitor menu but news posts link to the donor section. Both sets of links are valid. On staging its editor identifies a distinct post header and switches only that Navigation block to the visitor menu.

Common mistakes

  • Editing the contents of a shared menu merely to change which menu one header uses.
  • Picking between two menus by their display names without checking destinations.
  • Testing only the desktop homepage while the reported error occurs on a post’s mobile overlay.

Verify the fix and plan a rollback

How to verify the fix

The intended menus appear on the designated templates. A keyboard visitor can reach the nested destination on a narrow viewport. A control page and the footer retain their approved links.

If the change fails

Restore the prior menu selection in the same header. If a shared menu’s contents were edited, restore their documented labels, order and destinations as well. Recheck all templates using that menu before closing the incident.

Practical follow-up questions

Why are newly published Pages appearing in our header automatically?

Look inside the Navigation block for a Page List. It can list Pages dynamically. For a curated visitor journey, select the intended saved navigation and check what happens to a previously unexpected item.

How can I tell a bad URL from a bad header assignment?

Copy a wrong-looking item’s destination and open it separately. If only that target is incorrect, fix the item. If the whole collection belongs to another audience, change the assigned menu.

Why did our blog change while the program landing page stayed correct?

Open both templates and inspect their header parts. Compare the menu each part references before editing any links. A separate single-post header can diverge from the page template.

Where did the old classic menu go after the block-theme switch?

Check the block’s existing menus and the option to import a classic menu. The import creates a block menu copy, so changes to the original are not a reliable way to update the new header.

What if a donor menu and a visitor menu share the same label?

Compare the URL of a distinctive destination such as a donation form or opening hours and inspect submenu nesting. Give the chosen navigation an unambiguous internal name after the team confirms it.

Why did changing the donor link also affect another part of the site?

Both blocks may point to the same saved menu. Trace those references. If the two audiences need different links, use separate navigation data and check each part after saving.

What should I test on a phone view besides the hamburger icon?

Expand it, move into a submenu, follow one link and reopen the menu on the destination. Repeat using the keyboard. An icon alone cannot tell you whether its contents can be operated.

What if the links work but send visitors to staging?

Inspect editable custom URLs for the old hostname. Replace each confirmed stale destination with its published counterpart and check redirects on the public link before changing any other URLs.

When should I leave Reading settings alone?

Open the bare domain in a private window. If it displays the correct homepage and only the Home link is wrong, correct the link or navigation assignment. Reading settings control a different decision.

What evidence will a site owner need before rolling this out?

Save the affected and unaffected paths, template part and menu names, before-and-after link lists and mobile test. Include the previous menu selection so an editor can reverse the change quickly.

Free tools and website checks

Frequently asked questions

Can I switch navigation without deleting the faulty menu?

Yes. Assign the intended saved menu in the block. Preserve the other menu until you have checked whether another template uses it.

Do I need a separate mobile menu in core?

Start with the responsive behavior of the existing Navigation block. Inspect third-party mobile navigation only if the site actually uses a separate header or widget.

Why is Appearance → Editor missing?

Check the active theme type and your role. A classic theme can expose menu locations instead. A contributor may not have access to design controls.

Does one broken destination require rebuilding the navigation?

Inspect that item’s URL and the published Page. Correct the individual link when the remaining menu matches the approved collection.

Can a redirect checker identify which header rendered the link?

It can follow the public destination and report the HTTP chain. Use List View in the applicable WordPress template to identify its source block.

Official references and scope

A third-party builder, translated header or conditional display plugin may override core templates. A public screenshot cannot identify the active stored menu by itself.

Sources checked

Related guides