Posted By

hasssan on 08/20/11


Tagged

wordpress thematic


Versions (?)

Wordpress Thematic - create stylesheet


 / Published in: PHP
 

if don't like @import in stylesheet

  1. function create_stylesheet() {
  2. $templatedir = get_bloginfo('template_directory');
  3. $stylesheetdir = get_bloginfo('stylesheet_directory');
  4. ?>
  5. <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/reset.css" />
  6. <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/typography.css" />
  7. <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/images.css" />
  8. <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/layouts/2c-r-fixed.css" />
  9. <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/default.css" />
  10. <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/plugins.css" />
  11. <link rel="stylesheet" type="text/css" href="<?php echo $stylesheetdir ?>/style.css" />
  12. <?php
  13. }
  14. add_filter('thematic_create_stylesheet', 'create_stylesheet');

Report this snippet  

You need to login to post a comment.