WordPress Custom Menus Issue Solved!
In the recent release of wordpress 3.2.4 and the 3.2.3 security release, a change was introduced that caused custom navigation menus to default to the standard page list menu of EVERYTHING!
Not ideal, and as most people found out, the fix for this was to add 'fallback_cb' => false to the wp_nav_menu() calls in their theme, however for me, and some other people, this didn't fix the problem alone.
In fact as well of this, for some people, including myself, it seems that the wordpress upgrade ALSO removed the association between menu locations and the custom menus themselves from the database (i.e. The values set in the "Theme Locations" section of the menu editor were lost.
So, if you're still having issues with custom menus in wordpress, and your code for creating them and including them in your theme appears correct, check the menu editor and see if you need to re-associate your menus to your theme locations!
Related posts on coderchris.com:
- Page and Sub-page Menus In WordPress
Recently I wanted to change the theme I use on my personal blog to... - Dodgy WordPress Plugins and Themes
Recently I have been doing a LOT of research into various wordpress themes and... - Advanced Syntax-Hilighting Online Code Editors – A WordPress IDE?
When I write plugins for wordpress I like to do it on a test... - A Simple News System For Basic Websites
This is a very simple news system with comment support which is ideal for... - Meld WordPress And Facebook Together With Wordbook
Now this is a pretty neat plugin: Wordbook allows you to send your wordpress...
-
Hi Picero
if you have my issue this is the solution:
First activate the association panel (named “Theme Locations”) in the menus editor:
wp-admin > appearance > menus > screen options > check the box next to Theme Locations
You should see the theme locations ‘widget’ appear on the page (usually near the bottom)
In that widget you’ll see a drop down allowing you to associate your custom menu(s) with specific defined theme location(s)
If this doesn’t fix it for you pop me a link to the the theme you’re using and I’ll take a look for you
-
Wow, that was fast… Thank you.
I did everything as you told me. I made some custom menus and saved them. I choose the custom menu in the flyout under Theme locations and save it. I do “refresh” and under Theme locations there is nothing selected as it should be. In the flyout I can see my custom menus. It seems like the system does not save it. -
Hello, the theme is:
http://themes.livelylabs.com/green-stimulus/
In the mean time I solved the problem: I just made another copy of the template with new name and now it works just OK. Thanks for being prepared to help.
Regards, Rob -
- Comment Feed for this Post
Hello, TNX for the hint, but I can not make it working. I am a beginner in WP and php and I don’t know where to re-associate menus to my theme location. I am using Stimulus theme…