Before switching themes, list every widget and menu and where it sits, then use Live Preview to see the new theme with your own content. After switching, move widgets and menus into the new theme's places.

Sunday evening, a new look

A bed and breakfast owner finds a WordPress theme she likes, with a larger photograph across the top and cleaner type. One Sunday evening she activates it.

The new look is there, but the box with check-in times has gone from the sidebar, along with the newsletter sign-up. The menu bar lists every page on the site, including an old rates page she had meant to hide.

She assumes the theme has deleted them. It has not; they are waiting where the old theme left them.

Why the pieces stay behind

A WordPress theme defines the places where widgets can sit, such as a sidebar or a footer, and gives each one a name. Widgets belong to those places, not to the site as a whole.

Menus work the same way. A theme declares menu locations, such as a main menu across the top, and a menu appears only once it is assigned to one of them.

A new theme brings its own places and locations. WordPress cannot always tell which new place matches an old one, so the new theme starts with empty spaces while the old contents sit unused.

What tends to go missing

The last is the easiest to miss. Anything pasted into the old theme's own files stays with that theme, so the Analytics code can vanish without any sign on the page.

Previewing with your own content

Since WordPress 3.4 in June, each installed theme on the Themes screen has a Live Preview link. It shows the new theme with your own pages and posts before anything changes for visitors.

The preview also shows the gaps: empty sidebars, a missing header image, and in many themes a menu bar that falls back to listing every page.

Widgets cannot be arranged in the preview; that happens on the Widgets screen once the theme is active. The preview tells you how much work there will be, which is reason enough to look first.

A worked example

A gliding club flies from a small Interior airfield on weekends from spring to fall. Its WordPress site, kept by a volunteer, sells introductory flights and explains how to learn to fly.

The sidebar held a flying this weekend box updated each Friday, a link to book an introductory flight and a newsletter sign-up. The menu led to learning to fly, membership, visiting and contact.

In May a new volunteer chose a fresh theme and activated it on a Thursday night. By Friday the weekend box, the booking link and the sign-up were gone, and the menu listed every page the club had published.

Two visitors phoned the club's president to ask whether it was flying. The widgets turned up under Inactive Widgets, settings intact, and the menu was still listed under Appearance, waiting to be assigned.

Putting them back took an hour. The volunteer then wrote a one-page list of every widget, every menu and where each lived, and kept it with the site's logins.

The next theme change, in August, was tried in Live Preview first, and the list made the switch itself a twenty-minute job.

Listing what lived where

Before switching, go through the Widgets screen and note each widget in each area, in order. Copy the contents of every text widget into a document, since that text exists nowhere else.

On the Menus screen, note which menu is assigned to which location. Record the theme's own options, the header image file, and any code added to the theme's files.

A screenshot of each main page completes the list. It shows what visitors saw, which is the standard the new theme has to meet.

Choosing the moment

Switch themes when the site is quiet and someone has time to finish the job, such as a weekday morning outside the busy season. A Friday night switch leaves the gaps in place all weekend.

Tell anyone else who updates the site, so no one adds widgets to the old areas or edits a menu halfway through the move.

Keep the old theme installed for a few weeks. If something was missed, its settings and files are still there to check.

Putting widgets and menus back

After the switch, open the Widgets screen. Widgets from areas the new theme lacks usually appear under Inactive Widgets with their settings kept; drag each into its new place.

Sometimes the new theme reuses an old area's internal name, and widgets land somewhere unexpected, such as the footer. Check every area against the list.

On the Menus screen, choose a menu for each of the new theme's locations. A theme with a footer menu or a second bar may need a new menu built for it.

Checking after the switch

Go through the pages visitors use most: the home page, rates, booking and contact. Submit the sign-up form and the booking form once each to confirm they still work.

View the page source and confirm the tracking code is still there. Then look at the site on a phone, since a new theme may lay out the sidebar very differently on a small screen.

The counter-case

With no widgets and a single menu, a site has little to lose in a switch. A few minutes after activating the theme may be all it needs.

Larger changes are usually better done by the site's designer on a copy of the site, where nothing is visible to guests until the new theme is ready.

Either way, the list of what lived where takes half an hour to make, and it is the one document that lets anyone put the site back together.

Before switching themes

  1. List every widget and the area it sits in.
  2. Copy the text of every text widget.
  3. Note each menu and its location.
  4. Record theme options and added code.
  5. Try the theme in Live Preview first.
  6. Move widgets and menus into the new places.
  7. Test the forms and the tracking code.

Step two is the backstop. Widgets usually survive a switch in the inactive area, but a text widget deleted by mistake takes its contents with it, and only the copy brings them back.

Which of the new Customizer's settings an owner can change safely, and which deserve a word with the designer, is sorted out in the new theme customizer and what to leave to the designer.


Frequently asked questions

Why do widgets disappear when I change WordPress themes?

Widgets belong to the areas a theme defines. A new theme brings its own areas, so the old widgets are left unassigned, usually under Inactive Widgets.

Are the widgets deleted?

Usually not. They appear under Inactive Widgets on the Widgets screen with their settings kept, ready to be dragged into the new theme's areas.

Why does the menu show every page after a theme change?

Menus are assigned to locations the theme defines. Until a menu is assigned to the new theme's location, many themes fall back to listing every page.

What does Live Preview do?

Since WordPress 3.4, it shows an installed theme with your own pages and posts before you activate it, including the gaps the switch will leave.

What should I record before switching themes?

Each widget and its area, the text of every text widget, which menu sits in which location, the theme's options and any code added to its files.

What should I test after switching?

The pages visitors use most, every form on the site, the tracking code in the page source, and the whole layout on a phone.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

New theme, empty sidebar?

Send us your site's address before you switch, and we will list what lives where and move it across for you.

Start a Conversation