Conditional Image Based On Category
-
Hi,
I’m trying to change the header image based on the Archive category.
I tried
<?php if(strstr($category,’34’)) : ?>
<img src=’https://jchmusic.com/frametop-newsflash.gif’ alt=’page header’/>
<?php else : ?>
<img src=”https://jchmusic.com/frametop-weblog.gif” alt=”page header”/>
<?php endif; ?>…which did nothing. So how does one capture the id or the name of the current category of the archive?
TIA,
—JC
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Conditional Image Based On Category’ is closed to new replies.