Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #45 from szk11001/master
Added default stylesheet
  • Loading branch information
amb00010 committed Jan 12, 2015
2 parents ef71809 + cc3d469 commit c4a3409
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functions.php
Expand Up @@ -52,7 +52,11 @@ add_action( 'customize_register', 'sherman_titlebar_register' , 34);
function sherman_scripts() {
wp_enqueue_script( 'sherman-js', get_stylesheet_directory_uri() . '/javascripts/min/sherman.min.js', array( 'jquery' ));
$stylesheet = get_theme_mod('themeColor');
wp_enqueue_style( $stylesheet, get_stylesheet_directory_uri() . '/css/'.$stylesheet.'.css', array('cs-style') );
if( $stylesheet ){
wp_enqueue_style( $stylesheet, get_stylesheet_directory_uri() . '/css/'.$stylesheet.'.css', array('cs-style') );
} else {
wp_enqueue_style( 'sherman-blue', get_stylesheet_directory_uri() . '/css/sherman-blue.css', array('cs-style') );
}
}

add_action( 'wp_enqueue_scripts', 'sherman_scripts');
Expand Down

0 comments on commit c4a3409

Please sign in to comment.