14 Nov 2008, 8:04 AM
New Zenner
- Join Date:
- Nov 2008
- Posts:
- 2
- Plugin Contributions:
- 0
Customer Header Change button with page
Hello I'm creating my own custom header for my store using CSS.
Basically say for example I setup a product category called "Batteries". And then I make one of the buttons in my header link to that:
<li class="upstate"><a href="batteries-category">Batteries</a></li>I want to use php (I've done this in Wordpress but first time trying with Zencart) to change the class to "current" so that in my stylesheet I have a different image that will show for that.
So basically it's to indicate to the user that he/she is now in the Batteries section, as shown by a different image for that button.
Can someone please shed some light? Thanks.