Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] Active navigation using an included .php header Re: [Solved] Active navigation using an included .php header

#71844
quelake
Member

I use another method;

I assign a unique body-ID to every page by using the filename:

Code:
“>

In your css you can then simply add styling for the active state of that page (filename is without ".php" of course);

Code:
body#filename1 ul#navigation li a.button_that_needs_to_have_active_state,
body#filename2 ul#navigaton li a.button_that_needs_to_have_active_state_here {
“behaviour for active state”

}