Skip to content

Commit

Permalink
corrected problem with css files loading in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
menslow committed Dec 21, 2011
1 parent 9dcc06f commit 187a11f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
* @return void
*/
function add_site_styles(){
wp_enqueue_style('theme', get_bloginfo('template_directory') . '/assets/css/theme.css', array(), '1.00', 'all');
wp_enqueue_style('1200', get_bloginfo('template_directory') . '/assets/css/1200.css', array(), '1.00', 'all and (min-width: 1200px)');
wp_enqueue_style('960', get_bloginfo('template_directory') . '/assets/css/960.css', array(), '1.00', 'all and (min-width: 620px) and (max-width: 1200px)');
wp_enqueue_style('mobile', get_bloginfo('template_directory') . '/assets/css/mobile.css', array(), '1.00', 'all and (min-width: 0px) and (max-width: 620px)');
if (!is_admin()) {
wp_enqueue_style('theme', get_bloginfo('template_directory') . '/assets/css/theme.css', array(), '1.00', 'all');
wp_enqueue_style('1200', get_bloginfo('template_directory') . '/assets/css/1200.css', array(), '1.00', 'all and (min-width: 1200px)');
wp_enqueue_style('960', get_bloginfo('template_directory') . '/assets/css/960.css', array(), '1.00', 'all and (min-width: 620px) and (max-width: 1200px)');
wp_enqueue_style('mobile', get_bloginfo('template_directory') . '/assets/css/mobile.css', array(), '1.00', 'all and (min-width: 0px) and (max-width: 620px)');
}
}

/**
Expand Down

0 comments on commit 187a11f

Please sign in to comment.