Sidebar Widget Collapser 2.5

Latest version (2.5) released 2007/02/13.

Overview

This plugin adds a script that will dynamically add the collapse and expand links to your sidebar widgets, as you can see in action here on my blog.

Installation instructions

  1. Be sure that you have installed and activated the Sidebar Widgets plugin (by Automattic, Inc.). This plugin currently only works with widgets.
  2. Dowload the Sidebar Widget Collapser Plugin.
  3. Extract the files to your WordPress plugin directory (or a subdirectory beneath it).
  4. Activate the plugin.

Additional notes

UPDATED (ver. 2.5) : Now includes an options page for overriding the default settings described below.
This plugin makes some initial assumptions about the structure of your sidebar, as far as it configures the default options. You may override these in the options page.
Specifically, the default settings assume that

  • Your sidebar is (or is wrapped in) an element with the id of “sidebar”
  • That sidebar element contains an unordered list (UL) that will contain all your sidebar widgets
  • The list items (LI) in that list are your widgets, as identified with a class name containing the text “widget”
  • And, finally that these widget list items contain a title, which is a direct child element (usually H2, but not required to be) with the class of “widgettitle”

*Only tested on WordPress 2.x; your mileage may vary.

Feedback

Please post any questions / comments on the current release page for this plugin.