WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 developing a theme using a test installation (using InstantWP), but when I upload it to a staging site, for some reason the nav menu looks inflated. After looking at the source, it turned out to be that for some reason my test install uses the class .sub-menu while the staging install uses .children.

Both installs are fresh installs of 3.3.1 with the exact same plugins installed. Why would there be such a discrepancy between the two installs?

share|improve this question
Are sure one of the sites doesn't fall back to an automated page menu, instead of displaying a custom menu? From what I know, the markup generated by the page listing function differs from the one generated by a nav menu. – onetrickpony Apr 6 '12 at 18:57
up vote 3 down vote accepted

What One Trick Pony said; look in Appearance > Menus on both sites and check if the menu has been populated. If so, check to see if the Theme Location has been set and saved. If they are different that may be what's causing different menu structures to be rendered.

Let us know how it goes - good luck!

share|improve this answer
Yep, that was it--quite annoying, no? – digitxp Apr 6 '12 at 19:51
Agreed, I wish they were the same by default. But it's probably a 'feature' :-) – Michelle Apr 6 '12 at 20:05
Most likely developers chose to keep this for compatibility reasons, just like with all other code in WP, which is quite bad by today's standards – onetrickpony Apr 6 '12 at 20:59

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.