is_page_template conditional
-
I’m having some issues with the conditional below, can someone please take a look at it? Based on the code I want it to display one stylesheet for either of the first two templates or a different one for either of the second 2. As it is now it always displays the first style sheet…
<?php if (is_page_template('digest.php' || 'digest-page.php')) { ?> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/customCss/digest.css" type="text/css" media="screen" /> <?php } else if (is_page_template('it.php' || 'it-page.php')) { ?> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/customCss/it.css" type="text/css" media="screen" /> <?php } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘is_page_template conditional’ is closed to new replies.