WordPress.org

Ready to get started?Download WordPress

Forums

Menus: How do you create a home button with active state? (6 posts)

  1. elyonline
    Member
    Posted 4 years ago #

    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

  2. elyonline
    Member
    Posted 4 years ago #

    Just noticed that 'current_page_item' does not work for custom menu items. Any way over this?

  3. dbcuadro
    Member
    Posted 4 years ago #

    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

  4. localinternettraffic
    Member
    Posted 4 years ago #

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

  5. oneway
    Member
    Posted 3 years ago #

    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

  6. eppskevin
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags