WordPress.org

Ready to get started?Download WordPress

Forums

3.0 Alpha, menu not working suddenly? (19 posts)

  1. robinvd
    Member
    Posted 4 years ago #

    Hey all,

    I've been working with the 3.0 alpha since day one. After yesterdays update, my menu isn't working anymore. In the backend I get the following error in the menu options:

    "The current theme does not natively support menus, but you can use the “Navigation Menu” widget to add any menus you create here to the theme’s sidebar."

    Anyone know what happend with the last update? How can I change it back or improve the menu so it will work?

    Kind regards,
    Robin

  2. MichaelH
    Member
    Posted 4 years ago #

    Works okay using the build from last night (late March 30/early March 31) using the TwentyTen theme.

    What theme and plugins do you have installed?

    Note: Moved this thread to the Alpha/Beta Forum

  3. robinvd
    Member
    Posted 4 years ago #

    Ah thanks micheal,

    I'm using my own theme. Got the code from header.php form TwentyTen. Do I need to copy things from the function.php to add the support in the admin panel?

    Thanks in advance.

  4. MichaelH
    Member
    Posted 4 years ago #

    That sounds good ;) but not sure of that -- things have been changing in regards to menus and the TwentyTen theme so you might want to look back at what's changed in that theme.

  5. robinvd
    Member
    Posted 4 years ago #

    I will have a look at it some other time. Im more curious if other people will have this problem aswell. For now, im using the pixopoint menu addon again, easy setup and CSS is easy to edit.

  6. Fran6
    Member
    Posted 4 years ago #

    Hi everyone,

    Do you know how to enable menus in a theme that is not TwentyTen ? Can't find anywhere a solution to my problem ! ;-)

    Thanks !

  7. MichaelH
    Member
    Posted 4 years ago #

    I believe it is this in your theme's functions.php

    add_theme_support( 'nav-menus' );

    then something like this in your theme header:

    <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>
  8. MichaelH
    Member
    Posted 4 years ago #

    @robinvd - make sure your theme has the add_theme_support( 'nav-menus' ); in the functions.php.

    I saw the message you reported when I had a menu defined but switched to a theme that did have nav-menus support.

  9. robinvd
    Member
    Posted 4 years ago #

    @MichaelH

    I've added the add_theme_support( 'nav-menus' ); in functions.php. it doesn't give any errors when loading up, only in the backend I will still get the error.

    Also, now where talking about functions.php, I know this file is really cool, if you know how to use it..

    Problem is: I don't. My PHP experience is basic, and can't find some nice examples for it. Anyone know a good source where to check?

    Kind regards,

  10. MichaelH
    Member
    Posted 4 years ago #

    Well the new twentyten theme is a good place to look.

  11. heavym
    Member
    Posted 4 years ago #

    As I was having trouble ordering my menu which was a mix of categories and pages, I decided to try out the new menu system in 3.0 and with Michael's code above, it works perfectly. Just have to reapply my styles now.

    Cheers,
    Christopher

  12. briansage
    Member
    Posted 4 years ago #

    Adding another report to this thread, I have a custom built theme (modded from TwentyTen, of course) on 3.0 RC2 that has working custom menus. When migrating the project to a new server with 3.0 RC3 the menus just stopped working.

    oldserver.com/wp-admin/nav-menus.php works great (3.0 RC2)

    newserver.com/wp-admin/nav-menus.php now reports, "Your theme does not support navigation menus or widgets." (3.0 RC3)

    Could this have anything to do with PHP include paths, permissions, or anything else a different server environment might introduce?

  13. briansage
    Member
    Posted 4 years ago #

    Well lookie there: http://core.trac.wordpress.org/changeset/15193 it appears that in RC3

    add_theme_support( 'nav-menus' );

    ...has changed to...

    add_theme_support( 'menus' );

    I feel rather silly now, but I hope this helps someone else. Enjoy!

  14. clippingdesign
    Member
    Posted 3 years ago #

    Code "add_theme_support( 'menus' );" showing in my blog comment portion. Anybody know how to solve this issue.
    Please check the following link comment portion:

    http://clippingdesign.com/blog/realistic-tear-view-using-photoshop/

  15. Janu Studio
    Member
    Posted 3 years ago #

    Well lookie there: http://core.trac.wordpress.org/changeset/15193 it appears that in RC3

    add_theme_support( 'nav-menus' );

    ...has changed to...

    add_theme_support( 'menus' );

    I feel rather silly now, but I hope this helps someone else. Enjoy!

    Exactly... Simply Super Genius... Guys with error of sudden menu working stopped this fixes it...

  16. lovefishing
    Member
    Posted 3 years ago #

    Hi My menus have stopped working .

    I've very limited knowledge of php . But I can easily edit them with notepad+ and ftp them back to the hosting space.

    Which php file or files does this code go into and where abouts in the file . Need to get my menus going again.

    Thanks in advance

  17. briansage
    Member
    Posted 3 years ago #

    @lovefishing
    It depends on which theme you are using, but likely it will be in one of sidebar.php, header.php, or footer.php

    Also, this thread is for the Alpha version of 3.0, which you should upgrade from, if you haven't already. This may not even be your problem. Good luck with it.

  18. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

    A belated note, add_theme_support('menus') was changed specifically because it is internal only. Don't use it on your own. It won't work. Instead, use register_nav_menu.

    ---

    Anyway, your menus probably aren't working because your theme is de-registering jQuery bundled in core and re-registering the latest jQuery, 1.5. This breaks the widgets panel, due to backwards incompatible changes in the jQuery library.

    You'll want to ensure that the theme only does this on the frontend, if at all. WordPress 3.2 will have 1.5+. WordPress 3.1 will have 1.4.4.

  19. lovefishing
    Member
    Posted 3 years ago #

    Thanks for the response guys ! Its pointed me in the right direction

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.