WordPress.org

Support

Support » Alpha/Beta » Menus: How do you create a home button with active state?

Menus: How do you create a home button with active state?

  • Hi,

    I have installed 3.0 so I can get acquainted with the new features so I can update my own theme.

    I really like the menu feature but I cannot work out how to create an active state on a custom menu item I created for a home button. I understand that I can add a class to the menu item, but in doing that the ‘home’ button is always active.

    Am I missing something here?

    Many thanks,
    Karl

Viewing 5 replies - 1 through 5 (of 5 total)
  • Just noticed that ‘current_page_item’ does not work for custom menu items. Any way over this?

    Hi Karl,

    Have you found a solution to this problem? I can’t figure this out as well, though I’m assuming I’m just overlooking something.

    Thanks

    you can create active button using css.
    button:active { background-position: 0 -104px; }

    oneway

    @msevans

    I have the same problem.

    Where do you put the above CSS code??

    When using a Custom Menu I have no home button either.

    Thanks

    In case you were never able to figure this out:

    To add a proper “Home” link, go to the ‘Pages’ widget and click on the “View All” tab. The proper “Home” link should appear at the top of the list.

    Use this home link, and the active state will work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Menus: How do you create a home button with active state?’ is closed to new replies.