Hi all, my first post here (except my intro post earlier today).
I looked for this in the Code Snippet section and didn't see it, and honestly I'm very much a noob at this (for now, at least) so I'm not quite sure what I'd look for anyway. I've got a decent grasp on HTML and CSS and very little PHP.
So here's what I need help with: I wrote a simple PHP include so that all my main pages (including the index file) would all use the same file (navtabs.php) for their navigation tabs. But how do I make the code in navtabs.php dynamic for which button should be highlighted on the proper page?
Here is the code snippet for my navigation:
<nav>
<ul>
<li><a href="index.php" class="current">Home</a></li>
<li><a href="page-two.php" >Page Two</a></li>
<li><a href="page-three.php">Page Three</a></li>
<li><a href="page-four.php">Page Four</a></li>
<li class="last"><a href="page-five.php">Page Five</a></li>
</ul>
</nav>
Where class="current" is the highlighting attribute. All my pages using the same include of this code show the Home tab highlighted?
Hoping someone has a simple fix for me. Thanks!