200, 'height' => 180, 'default-image' => get_template_directory_uri() . '/images/logo-left.png', 'header-text' => false, ); add_theme_support( 'custom-header', $args ); //Enable support for site background change add_theme_support( 'custom-background' ); $args = array( 'default-color' => 'f5f5f5', 'default-image' => get_template_directory_uri() . '/images/default-background.png', ); add_theme_support( 'custom-background', $args ); } add_action( 'after_setup_theme', 'ontheside_setup' ); // add ie conditional html5 shim to header function ontheside_add_ie_html5_shim () { echo ''; } add_action( 'wp_head', 'ontheside_add_ie_html5_shim' ); // Register scripts and styles function ontheside_custom_enqueue_scripts() { // Register StyleSheet wp_enqueue_style( 'ontheside-style', get_stylesheet_uri() ); // enable threaded comments if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) wp_enqueue_script( 'comment-reply' ); //* Load scripts only if custom background is being used if ( ! get_background_image() ) return; wp_enqueue_script( 'custom-backstretch', get_stylesheet_directory_uri() . '/js/backstretch.js', array( 'jquery' ), '1.0.0' ); wp_enqueue_script( 'custom-backstretch-set', get_stylesheet_directory_uri().'/js/backstretch-set.js' , array( 'jquery', 'custom-backstretch' ), '1.0.0' ); wp_localize_script( 'custom-backstretch-set', 'BackStretchImg', array( 'src' => get_background_image() ) ); } add_action( 'wp_enqueue_scripts', 'ontheside_custom_enqueue_scripts' ); /** * Filters wp_title to print a neat