Home › Forums › CSS › WordPress sidebar custom menu › Re: WordPress sidebar custom menu
July 19, 2012 at 5:06 am
#106406
Participant
I don’t think that’s the best way of doing it. WP comes with a built in widget for showing custom menus, why not use that instead? Putting the PHP code in the sidebar.php like that isn’t very flexible.
Create a new menu in Appearance > Menus and then add the Custom Menu widget to your sidebar and select your new menu to show.