113 reputation
7
bio website
location
age
visits member for 2 years, 2 months
seen Oct 4 '12 at 2:09

Aug
23
awarded  Popular Question
Oct
4
awarded  Scholar
Oct
4
accepted Add a Second Menu to a theme that only support 1 menu
Oct
4
comment Add a Second Menu to a theme that only support 1 menu
Managed to resolve this myself afterwards. Found where to add the code to display the menu on the front page. couldn't have done it without you so thanks a lot for all your help!
Oct
4
comment Add a Second Menu to a theme that only support 1 menu
Ok so now I get no errors but it still displays only one menu on the front end. I suspect it has something to do with it not being called in the functions.php page? BEcause we created a new menu called secondary-menu, fucntions.php only calls the primary-menu...i think?
Oct
4
comment Add a Second Menu to a theme that only support 1 menu
lol i just answered my own question. I found what it was. The code was regsiter_nav_menu. To add more than one menu the function is different; it has an S on the end "regsiter_nav_menus". I changed it to this and now i get no errors. it now displays 2 menus in the admin section. So far so good, now to get it displayed on main menu. Will test that and get back to you...
Oct
4
comment Add a Second Menu to a theme that only support 1 menu
New Error says: Warning: Missing argument 2 for register_nav_menu(), called in /home/greatwhi/public_html/wp-content/themes/infinity/lib/functions/menus.php on line 30 and defined in /home/greatwhi/public_html/wp-includes/nav-menu.php on line 106 Warning: Illegal offset type in /home/greatwhi/public_html/wp-includes/nav-menu.php on line 107 Warning: Cannot modify header information - headers already sent by (output started at /home/greatwhi/public_html/wp-includes/nav-menu.php:106) in /home/greatwhi/public_html/wp-includes/option.php on line 563
Oct
3
comment Add a Second Menu to a theme that only support 1 menu
When I used your original code nothing happened at all, no errors and no addtional menu. When I now use your modified code it errors saying Warning: in_array() expects parameter 2 to be array, null given in /themes/infinity/lib/functions/menus.php on line 28 which is the line we added. isn;t it because we have declared a new function of second-primary?? In the other pages (shown above) they reference infinity-primary-menu but they wont reference secondary?
Oct
3
comment Add a Second Menu to a theme that only support 1 menu
that didn't do anything at all. I don't care if there is another method, I just need to add a second many which displays pages (not posts). If you can think of another way that will be fine.
Oct
3
revised Add a Second Menu to a theme that only support 1 menu
added 506 characters in body
Oct
3
comment Add a Second Menu to a theme that only support 1 menu
cool, I see where you are going now. I opened the init file and found it referenced a menu.php file. After opening this I found how it was registering the menus. Code is pasted above. Can you ammend the code to add the second menu please?
Oct
3
awarded  Editor
Oct
3
comment Add a Second Menu to a theme that only support 1 menu
See my update above. I have posted the functions.php
Oct
3
revised Add a Second Menu to a theme that only support 1 menu
added 1306 characters in body
Oct
3
asked Add a Second Menu to a theme that only support 1 menu
Sep
25
awarded  Custodian
Sep
25
reviewed Approve suggested edit on Domain Mapping for Wordpress MU and https redirection - How to?
Sep
18
awarded  Tumbleweed
Sep
11
asked Domain Mapping for Wordpress MU and https redirection - How to?
Feb
6
awarded  Supporter