Wordpress Thematic - create stylesheet


/ Published in: PHP
Save to your folder(s)

if don't like `@import` in stylesheet


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.