Category Header Image?
-
I have found a conditional statement code on another page and implemented it on my site. It works for the first category listed but not the subsequent cateogories. Here is my site https://www.boilersports.com and this is the code:
‘<?php if ( is_category(alabama-crimson-tide) ) { ;?>
<?echo ‘<img src=”https://boilersports.com/wp-content/uploads/2016/02/333.gif” width=”50″ height=”50″>’;?><?php } elseif ( is_category(arkansas-razorbacks) ){ ;?>
<?echo ‘<img src=”https://boilersports.com/wp-content/uploads/2016/02/8.gif” width=”100″ height=”100″>’;?><?php } elseif ( is_category(auburn_tigers) ){ ;?>
<?echo ‘<img src=”https://boilersports.com/wp-content/uploads/2016/02/2.gif” width=”100″ height=”100″ align=”left”>’;?><?php } else { ;?>
<?php } ;?>’Is there something wrong with my code?
- The topic ‘Category Header Image?’ is closed to new replies.