Im kinda a noob but have made some homepages for fun but got this new one that im making for a friend that´s stopped my dead in my tracks:
The popup (ugly as hell and will be changed into images) gives the visitor the option of three different types of products to view. I need help with how to make a custom menu load when each of these three categories are clicked. I´ve googled but didnt get to far, to little codeexperience keeps me from getting it.
Anyone got any thoughts?
Thanks!
Dave
Sweden
Once the category is selected it would be pretty easy with the help of wp_nav_menu to check what category is currently selected using is_category and then load the menu you need. This would be defined in your page template or header (depending on where your menu is loaded)
You will need to define the different menu’s in your functions.php like this :
Once you’ve defined the menu’s you can set them up under Appearance > Menu’s in the admin area.