WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing Menu behavior - disable top level page nav (5 posts)

  1. cocococo
    Member
    Posted 2 years ago #

    Hi there

    I have child menus. However, the top level (parent) menu item ALSO calls a page, and I wanted a passive click-only item to drop the other page choices down - people are reporting they missed the first item (top level parent page).

    http://www.copywriting.id.au. I'm using a child version of twenty eleven

    On THAT note, some of the fixes suggested in the forum work only on the original parent style.css. When the code is put into the child style, it doesn't work. When the same code change is made in the parent, it works.

    Is there a reason for that?

    Thanks

  2. Gary Darling
    Member
    Posted 2 years ago #

    If I understand you correctly you want a top level menu label (Foo) that drops down a sub menu of child pages when clicked, but you don't want users taken to a page called Foo when Foo is clicked. Is that right?

    If so, under Menus > Custom Links create a link with a url of # and a Label of Foo and add that to the menu. Add your child pages underneath Foo.

    You will get the dropdown effect when hovering unless you override the css that provides that.

  3. cocococo
    Member
    Posted 2 years ago #

    Thanks garydarling

    I've done that. It'll seem REALLY obvious, but how do I connect the sub-menus? the Menu/submenu relationships are established in the page definitions - and the new menu (foo) doesn't have a page.

    So, how do I connect the new top level (Foo) to the other menu items I'd like to 'drop down' (which are existing pages)

    Thanks

  4. Gary Darling
    Member
    Posted 2 years ago #

    In Appearance > Menus is where you establish the menu / submenu relationship. From the Menus Codex:

    After items have been added to a menu, drag and drop to put them in the order you want. You can also click each item to reveal additional configuration options. You can also drag a menu item a little to the right to make it a submenu, to create menus with hierarchy. You'll see when the position of the drop target shifts over to portray the nested placement. When you have finished building your custom menu, make sure you click the Save Menu button.

  5. cocococo
    Member
    Posted 2 years ago #

    Thank you - so simple. Your help has been much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic