Support » Themes and Templates » Make top level menu links inactive?

  • Resolved stutes


    So I just set up a menu under Appearance > Menus, using the Atahualpa 3.5.2 theme, and I’m pleased to say it is working well (the menu was broken for a while).

    The only thing I miss is that now all levels of the menu are active, and I liked it before when the theme managed the menu and allowed me to make the top levels of the menu inactive. With WP3, the theme has given control of the menu to WP3, in order to be able to integrate the new menu feature in WP3.

    So I’m wondering how I can make the top levels of the menu inactive.

    For example, I have:
    Upcoming >

    The “Upcoming” is a page, but it is empty. There is really no content for it, it is just an empty page acting as a parent for the children.

    Before with WP2 no could click on it. Now people can, and all they get is an empty page.

    Any advice?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Rather then using empty pages, use the custom links box, and use # in the URL field, it’ll be clickable, but not go anywhere, and you can give the item any name you like.. (without a need to create a page).

    If you don’t see a “Custom Links” box, click on “Screen Options” (top right), and check the appropriate checkbox to enable custom links..

    Hope that helps.. 🙂

    Thanks! Worked slick!

    You’re welcome.. 😉

    hello. i am dealing with the same issue, however i can’t find the “custom links” box. i’m using wp 3.0.1

    what i am missing? thanks!

    Are you under Appearance > Menus?

    i am under “Appearance”, however there’s only 3 options available: Themes, Widgets and Editor

    Don’t know what to tell ya. Under “Appearance” I have the following in this order:

    Atahualpa Themes Options

    As you can see, I use the Atahualpa Theme, which I had to update to get to work with WP3. Perhaps the lack of Menu showing up under Appearance is because your theme doesn’t support the WP3 menu system. Like I said, I had to update my theme before I could get the new menu system to work.

    You probably need to add support for the menus to the theme.

    add_theme_support( 'nav-menus' );



    Forum Moderator

    @mark: Last I heard from the core team, add_theme_support( 'nav-menus' ) wasn’t to be used in themes (it’s for internal use only). You need to call register_nav_menus instead.

    I’ve never had to add support to a theme(educated guess), hence my lack of knowledge on that key piece of info, thanks .. 😉

    thanks guys, since i am building a brand new theme, apparently i needed to force the menus to show up in my wp-admin. this simple code did the trick:

    <?php register_nav_menu(); ?>

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Make top level menu links inactive?’ is closed to new replies.