Forums

current page id tag (5 posts)

  1. Chadwick
    Member
    Posted 7 years ago #

    on my site i'm working on http://chadwick.fbsdhosting.com/school
    i was wondering if there was a way to determine which page is being viewed and change the css style of the link refering to the current page.
    the sidebars and header are part of an include that gets included in to each of the pages.
    I was thinking about using php to find out what page it is and then change the code. But my php skills are lacking and if someone knew of an easy solution i'd be very pleased.

  2. Michael Adams (mdawaffe)
    Member
    Posted 7 years ago #

  3. Chadwick
    Member
    Posted 7 years ago #

    Well this menu isn't driven by wordpress. Its just a normal ul li menu.

  4. Michael Adams (mdawaffe)
    Member
    Posted 7 years ago #

    Oh - I thought you meant WordPress Pages. Sorry, my fault.

    Try looking at http://codex.wordpress.org/Conditional_Tags ? That might help.

  5. Chadwick
    Member
    Posted 7 years ago #

    ahh ok i found the answer thanks for the help

    http://www.alistapart.com/articles/keepingcurrent/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.