Ok that one works! Here is the link to the site I'm building where I'm trying to incorporate this code. www.andyrichin.com/work_all.php
As you can see in the nav up top right corner is the main nav I'm working with. How would you manipulate your code so that the Work link stays lit even when you go to say Creative Juice, or any of them for that matter? Instead of echo <li> which seems to place it up in the nav.
Does is have anything to do with class="active" vs class="current"? Thanks for the help!
Ok that one works! Here is the link to the site I'm building where I'm trying to incorporate this code. www.andyrichin.com/work_all.php
As you can see in the nav up top right corner is the main nav I'm working with. How would you manipulate your code so that the Work link stays lit even when you go to say Creative Juice, or any of them for that matter? Instead of echo <li> which seems to place it up in the nav.
Does is have anything to do with class="active" vs class="current"? Thanks for the help!
You could add an OR into the condition checked. Something like:
So would that replaces the current echo strpos($_SERVER..... line? Is there any way to accomplish this same thing without embedding it in the unordered list and just calling it in the list? If that makes sense.
I just want to have 1 header file.. 3 nav links (Home, Work and About), and have the Work link stay hilighted (.current) when you visit the subpages in Work such as Print, Web, Packaging. Is this possible? This is crazy difficult for some reason. I do appreciate all of the help, and maybe I am just missing something.
I just want to have 1 header file.. 3 nav links (Home, Work and About), and have the Work link stay hilighted (.current) when you visit the subpages in Work such as Print, Web, Packaging. Is this possible? This is crazy difficult for some reason. I do appreciate all of the help, and maybe I am just missing something.
Sounds a little more complicated. Might need a nested array that way.
Bookmarks