Linking to custom CSS file
-
Hello,
I have two pages that I want to link to a custom stylesheet. The customer care page is based on a template, and the single-5.php is a custom single post page. The first links perfectly, the second not at all. I can’t understand why, as the code is almost identical:<?php if (is_page_template('customerCare_template.php')) {?> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/customerCare.css"> <?php }?> <?php if (is_page('single-5.php')) {?> <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/customerCare.css"> <?php }?>
Thanks for any help.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Linking to custom CSS file’ is closed to new replies.