Posted By

nWidart on 02/26/12


Tagged

css files loading wpconditional


Versions (?)

wp_conditional css files loading


 / Published in: PHP
 

wp_conditional css files loading

  1. <!-- 1140px Grid styles for IE -->
  2. <!--[if lte IE 9]><link rel="stylesheet" href="library/css/ie.css" type="text/css" media="screen" /><![endif]-->
  3.  
  4. <!-- The 1140px Grid - http://cssgrid.net/ -->
  5. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/1140.css" type="text/css" media="screen" />
  6.  
  7. <!-- Your styles -->
  8. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  9. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/main.css" type="text/css" media="screen" />
  10.  
  11. <?php if ( is_front_page() ) { ?>
  12. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/homepage.css" type="text/css" media="screen" />
  13. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/flexslider.css" type="text/css">
  14.  
  15. <?php } elseif ( is_page('53') || '53' == $post->post_parent ) { ?>
  16. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/portfolio.css" type="text/css" />
  17.  
  18. <?php } else if ( is_page('9') || is_single() || is_category() || is_tag() || is_search() ) {?>
  19. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/blog.css" type="text/css" />
  20. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/SyntaxHighlighter.css" />
  21. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/lf_Override.css" />
  22.  
  23. <?php } else if ( is_page('11') ) {?>
  24. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/contact.css" type="text/css" />
  25.  
  26. <?php } elseif ( is_page('7') ) { ?>
  27. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory') ?>/library/css/about.css" type="text/css" />
  28. <?php } ?>

Report this snippet  

You need to login to post a comment.