Iv created a header include file storing main nav etc, I want to add css to the active page of the site but not sure what php I have to add to the page to achieve this?
You’d do better to refer to the current page as current rather than active since an active link is one that is currently being run, not aone that is pointing at the current page.
Calling it active means that there is a potential for confusion in the future when someone is unsure whether the reference is to the current page or an active link.
In the code you could refer to it as sitepointforums if you really wanted to.
felgall, you make a valid point in terms of “anchor states”, an active state can be applied to an anchor and should not be mixed up with current page values etc.