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 have seen on some wordpress themes that if the browser width is less, the normal menu becomes a select menu. Can someone tell me how it is done? I know there is a plugin for that, but I want to know how to implement it in the theme without plugin. Thanks

share|improve this question
up vote 1 down vote accepted

I think the plugin you mention is the one I wrote so if you're looking for answer on how to do it take a look at the code. http://wordpress.org/extend/plugins/dropdown-menus/

Essentially all I did was create a custom menu walker class so I could output the menus created in the backend as a dropdown.

If it helps my plugin can actually be packaged within in a theme and included via the functions.php. Just wrap the include in a !function_exists('dropdown_menu') test and you're good.

share|improve this answer

This is achieved via CSS Media Queries, see Twitter Bootstrap as an example. You'll find many resources if you search for "responsive" design.

share|improve this answer

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.