Created
March 4, 2012 18:21
-
-
Save nWidart/1974265 to your computer and use it in GitHub Desktop.
WP_ Conditional styling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!– 1140px Grid styles for IE –> | |
<!–[if lte IE 9]><link rel="stylesheet" href="library/css/ie.css" type="text/css" media="screen" /><![endif]–> | |
<!– The 1140px Grid – http://cssgrid.net/ –> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/1140.css" type="text/css" media="screen" /> | |
<!– Your styles –> | |
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( ‘stylesheet_url’ ); ?>" /> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/main.css" type="text/css" media="screen" /> | |
<?php if ( is_front_page() ) { ?> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/homepage.css" type="text/css" media="screen" /> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/flexslider.css" type="text/css"> | |
<?php } elseif ( is_page(’53′) || ’53′ == $post->post_parent ) { ?> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/portfolio.css" type="text/css" /> | |
<?php } else if ( is_page(’9′) || is_single() || is_category() || is_tag() || is_search() ) {?> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/blog.css" type="text/css" /> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/SyntaxHighlighter.css" /> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/lf_Override.css" /> | |
<?php } else if ( is_page(’11′) ) {?> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/contact.css" type="text/css" /> | |
<?php } elseif ( is_page(’7′) ) { ?> | |
<link rel="stylesheet" href="<?php bloginfo(‘stylesheet_directory’) ?>/library/css/about.css" type="text/css" /> | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment