Accordion stlye tweak
-
Hi. I′m usiing the pro version of this plugin, but i need accordion style menu.
I′ve added the code you provided in this thread.
At the moment i′m using this code:
jQuery(document).ready( function($) { $(".child-sidebar-menu > li > a").click(function(){ //Slides open and closed the grandchild menu $(this).parent().find('ul').slideToggle(400); return false; }); //Initially hides the grandchild menu $('.child-sidebar-menu ul').hide(); //Initially show the grandchild menu if on a grandchild or child pages $('.child-sidebar-menu ul li.current_page_item').parent().show(); $('.child-sidebar-menu ul li.current_page_item ul').show(); $('.child-sidebar-menu li.current_page_item ul').show(); });
I need to tweak it to the following:
1. If a page has a child page, when click on title don′t link to page, only open the child-pages list.
2. When click on a parent, close other parents of same level.
3. Add icon to expand and collapse.
- The topic ‘Accordion stlye tweak’ is closed to new replies.