WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working locally on a completely new theme. Once I'm done I'm going to use the "test drive" plugin to allow admins to test the theme before switching over to it. The problem is that with the new theme there are more menus & updates to the existing ones. How do I manage adding/updating the menus without messing with the live site?

Can I somehow import them? Or while I'm test driving the new theme, can I add the menus or will they be added globally?

In the meantime, what I've started to implement is: 1. Check if the menu exists. If it does then build it the normal WP way. 2. As a fallback, revert to a hardcoded menu.

So I'd upload the theme, activate it, add the menus and after launch I'd then have to go and remove the fallbacks.

Not sure if this is right. Seems a bit awkward.

share|improve this question

They are included in the WordPress export file and there's also a plugin which only exports the menus in WordPress.http://wordpress.org/plugins/menu-exporter/

Hasn't been updated in 2 years however it did test it last year and works.

share|improve this answer
Quick reply, thanks. Hmm, the lack of activity scares me on that. For the first option, how would I go about that? I'd have to export from the live site, import locally, add the menus and import to the live site overwriting everything (incl. anything added after my previous export)? That doesn't sound great either :/. – Adam Lynch Jan 3 '14 at 11:06
I don't see what the problem is because any menu's you create will be saved by WordPress and you can preview them when changing themes. – Brad Dalton Jan 3 '14 at 11:53
Maybe I'm just looking at this the wrong way. Don't know why I haven't thought of this (probably because I'm new to WP) but would an obvious solution be to add new unshown menus, switch the theme and then assign the new menus to the correct theme locations? How would this fit in with test driving the theme? Is it possible to test drive the theme and put the new menus in the theme's locations without harming the live site? – Adam Lynch Jan 3 '14 at 12:12
What most theme developers do is include an export file in the theme so people can import the demo content if they want. – Brad Dalton Jan 26 '14 at 15:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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