WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Keeping a hover state of a graphic horizontal nav, based on the page url? (2 posts)

  1. culturalelite
    Member
    Posted 7 years ago #

    Hi,

    i'm having a little problem with my graphic navigation on my site...

    http://www.tomhartshorn.co.uk

    The top horizontal nav (the tabs) I want to make the hover state of the tabs active if you're on that page. So if you're in 'Work' (the homepage) the tabs 'Work' will be in a constant rollover state.

    Because wordpress is all template driven Is the only way to do this with php?

    so a piece of php that basically checks the url of the page you're on then adjusts the hover state of the nav accordingly.

    hope that made sense. Any help would be appreciated.

    Tom

  2. BPartch
    Member
    Posted 7 years ago #

    Hello

    Check out this link and see if it helps: http://codex.wordpress.org/Dynamic_Menu_Highlighting

    If you have more questions, just ask. :)

Topic Closed

This topic has been closed to new replies.

About this Topic