I need to change a link on the headers of a site depending on what category the page is. currently we are using php's switch/case/break to switch out the entire "a href ...etc" link depending on the category, so for example:
case 'red': ?>
<a href="red.html">red</a>
<?php break;
case 'blue': ?>
<a href="blue.html"></a>
and so on.
is there a way to do this with css and the body id? example: body id="red", and something besides php or javascript could change the link, like css' content:before or :after? i can't figure out how to apply that to inside the a tag. thanks.