/ Published in: PHP

if don't like `@import` in stylesheet
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function create_stylesheet() { $templatedir = get_bloginfo('template_directory'); $stylesheetdir = get_bloginfo('stylesheet_directory'); ?> <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/reset.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/typography.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/images.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/layouts/2c-r-fixed.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/default.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $templatedir ?>/library/styles/plugins.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $stylesheetdir ?>/style.css" /> <?php } add_filter('thematic_create_stylesheet', 'create_stylesheet');
Comments
