Collapse Page and Category Plugin

Uses CSS and Javascript to collapse children on Pages and Categories or any Unordered List that uses the css class 'children'.

Author:Keith P. Graham (profile at wordpress.org)
WordPress version required:2.8
WordPress version tested:3.3.2
Plugin version:1.5
Added to WordPress repository:21-07-2010
Last updated:28-12-2011
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:2
Plugin URI:http://www.BlogsEye.com/
Total downloads:8 715
Active installs:300+
plugin download
Click to start download

This plugin installs some javascript in the footer of every page. Javascript detects any list items with a class of 'children'. It hides the children in the tree and sets a click event that will expand or re-collapse them. The action uses only css and javascript and occurs after your page loads, so that search engines will see the whole tree before it is collapsed.

WordPress uses the 'children' css class when it displays pages and categories in unordered lists, but you can put anything in an unordered list with a css class of 'children' on the child UL tags and the javascript will collapse or expand it for you.

Note: The plugin will not work with themes and widgets that overwrite the default behavior of WordPress.

There are no configurations options. The plugin is on when it is installed and enabled. To turn it off just disable the plugin from the plugin menu.

Donations: If you find this plugin useful and you wish to support me, you can buy my book of short stories (cheap) Error Message Eyes: A Programmer's Guide to the Digital Soul
At the very least please visit my websites and, if appropriate, add a link to one on your blog:
Blog's Eye (My WordPress Plugins and other PHP coding projects)
Wandering Blog (My personal Blog)
Resources for Science Fiction (Writing Science Fiction)
The JT30 Page (Amplified Blues Harmonica)
Harp Amps (Vacuum Tube Amplifiers for Blues)
West Nyack Honey (I keep bees and sell the honey)