WordPress.org

Ready to get started?Download WordPress

Forums

Keep sidebar page slection pressed (5 posts)

  1. mastron
    Member
    Posted 7 years ago #

    What I like to do is the following. I have a button in the sidebar which has 2 states: normal and over. What I like to add is a pressed state. So, when somebody selects a page from the sidebar that it gives a feedback what page they are on.

    The site that its for is:

    http://www.notarissonenbreugel.nl/web/

    Thanks in advance,

    Niel

  2. deko
    Member
    Posted 7 years ago #

    I did this once with PHP. I used a variable in the URL to identify the request, then generated my HTML/CSS accordingly. If I were to do it again, I'd try giving my stylesheet a .php extension and put the logic there.

  3. mastron
    Member
    Posted 7 years ago #

    Hmm. Sounds like a sollution. But a complex one. My php skills are not that good but i'll give it a go.

    But isn't there an easier way to do it?

  4. mastron
    Member
    Posted 7 years ago #

    Anybody a better sollution?

  5. Matt's Intelligent Menus (http://photomatt.net/scripts/intellimenu/) might give you a starting point.

Topic Closed

This topic has been closed to new replies.

About this Topic