Changing Category CSS Based on Name
-
Hi,
I’m trying to change the CSS where the Category name is displayed, based on it’s name. I thought this could be done with an IF statement, but I’m having problems…
Basically, I thought it would be something like this:
<?php if(‘category_name=Category1’);?>
<span class=”Category1heading”>
<?php else:(‘category_name=Category2’);?>
<span class=”Category2heading”>
<?php endif;?>
</span>Could anyone give me a hand with this?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Changing Category CSS Based on Name’ is closed to new replies.