I am desperately trying to find a plug-in that works with Wordpress 3 for making sidebar/widget Page menus fold or collapse (pages, not posts or categories).
ILC-Folding is and older plug-in and is SO close to working, but for some reason it seems to work backwards.
EG if you look here: http://purewatercanada.com/wordpress/?page_id=12
While you are in the Water Treatment (parent) page, it hides it's child pages, but opens up the other parent page, Plumbing Products and Services, child pages. When I am on the Water Treatment pages, IT'S child pages should be open, and the Plumbing Products and Services should be closed.
The plug in is pretty basic looking JS, but I don't know any JS. Could someone look at the code below and see if it can be adjusted to work correctly?
And this is all that's in the PHP:
Thanks a ton for any help.
If anyone knows of a more current plug-in that works for PAGES let me know. There are a few for categories, but none for pages.
ILC-Folding is and older plug-in and is SO close to working, but for some reason it seems to work backwards.
EG if you look here: http://purewatercanada.com/wordpress/?page_id=12
While you are in the Water Treatment (parent) page, it hides it's child pages, but opens up the other parent page, Plumbing Products and Services, child pages. When I am on the Water Treatment pages, IT'S child pages should be open, and the Plumbing Products and Services should be closed.
The plug in is pretty basic looking JS, but I don't know any JS. Could someone look at the code below and see if it can be adjusted to work correctly?
Code:
/* ILC-Folding
* http://ilovecolors.com.ar/folding-menu-plugin-wordpress/
*/
jQuery(document).ready(function(){
jQuery(".page_item ul").hide();
jQuery(".current_page_item ul:first").slideDown();
jQuery(".current_page_item").parents("ul, li")
.map(function () {
jQuery(this).slideDown();
});
});
And this is all that's in the PHP:
Code:
function ilc_addFolding_init(){
wp_enqueue_script('ilc_folding', '/wp-content/plugins/ilc-folding/folding.js', array('jquery'));
}
add_action('init', 'ilc_addFolding_init');
?>
Thanks a ton for any help.
If anyone knows of a more current plug-in that works for PAGES let me know. There are a few for categories, but none for pages.