Web Applications Stack Exchange is a question and answer site for power users of web applications. 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

At Wikipedia, the search field (when located on the left, in the sidebar) gets dynamically wider if the suggested page name is too wide for the default search field.

Does anyone know how to switch this on (or how it might be switched off)? I've checked LocalSettings.php, MediaWiki:Common.css and MediaWiki:Common.js but cannot find anything.

Clarification: I'm looking for a dynamic change (depending on page width), not structurally increasing the sidebar width.

share|improve this question
up vote 2 down vote accepted

when using the new Vector skin, install the Vector extension and add this to your LocalSettings.php (after including the extension files):

$wgVectorFeatures['expandablesearch']['global'] = true;

This would expand the search box dynamically when it is focused on, but this is only a functionality of the Vector skin.

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.