page and category array question
-
Does anyone know how get the following code to also apply to a category post as well?
<div id="header-logo" onclick="location.href='<?php bloginfo('url'); ?>'" style="cursor: pointer;" > <?php if (is_page(array('1', '2', '3','4', '5', '6', '7', '7'))) $logo_image = 'subLogo.jpg'; else $logo_image = 'mainLogo.jpg';?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php echo $logo_image;?>" alt="<?php bloginfo('name'); ?>" /> </div>
Thanks
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘page and category array question’ is closed to new replies.