Linking different CSS docs to groups of pages
-
I’m creating a theme which requires separate css documents for each section of the site so I have added this to the header.php
<?php if ( is_page (98 )) : ?>
<link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_directory’); ?>/pilates.css” />
<?php endif; ?>I’m a bit clueless with php – how can I add in a list of different pages that I want to apply this css to so I don’t have to do a separate one for each page, or better still say be able say ‘this page and all child pages’?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Linking different CSS docs to groups of pages’ is closed to new replies.