0

i am new to wordpress and i have to show the my menus in side bar in hierarchial way like

Home page
    --menu1
    -------menu1-submenu1
    -------menu1-submenu2
    --menu2
    -------menu2-submenu1
    -------menu2-submenu2

and they should be collapsible in starting and when i click on main menu of it will show me the sub menus .

my test enviorment URL is http://178.236.226.168/reseller-hosting/

and the html who's copy i have to do in my menu is

http://servercentre.net/small-and-medium-business/email-and-apps/hosted-exchange-2010.html

any plugin who fullfill my requirement really very much help full to me.

and i already tried some plugin's like collapsing-pages.0.6.1.zip,gd-pages-navigator.zip,flexi-pages-widget.zip but none of them giving me that effect.

thanks

1 Answer 1

2

You do not need a plugin to do this, you can do it with wp_nav_menu() (and it's related functions) and CSS. Specifically what you should be looking at is the .current-page-ancestor and .menu-item-ancestor to display (or not display) the desired links.

7
  • as i written in my question i am very new to wordpresss so can u please help me where i have to made these changes ? Commented Feb 9, 2012 at 10:32
  • it can be done with any plugin so i dont have to write any code Commented Feb 9, 2012 at 10:41
  • If you already have the side menu setup, you can just modify it in Appearance->Menus
    – mor7ifer
    Commented Feb 9, 2012 at 10:58
  • yah, i already done there but side menu appearing in a vertical straight line.i want to them be categorized and collapsible and expandable Commented Feb 9, 2012 at 11:08
  • Then modify the CSS...you might need some javascript too. If you are asking how to do the CSS, it is not an appropriate question for this site, as it does not deal with wordpress.
    – mor7ifer
    Commented Feb 9, 2012 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.