'e6e6e6', ) ); $args = array( // Text color and image (empty to use none). 'default-text-color' => '444', 'default-image' => '', // Set height and width, with a maximum value for the width. 'height' => 250, 'width' => 960, 'max-width' => 2000, // Support flexible height and width. 'flex-height' => true, 'flex-width' => true, // Random image rotation off by default. 'random-default' => false, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'pin_header_style' ); add_theme_support( 'custom-header', $args ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 624, 9999 ); } add_action( 'after_setup_theme', 'pin_theme_setup' ); //custom header text function pin_header_style() { global $wp_styles; // Loads the Internet Explorer specific stylesheet. wp_enqueue_style( 'pin-ie', get_template_directory_uri() . '/ie.css', array( 'pin-style' ), '20121010' ); $wp_styles->add_data( 'pin-ie', 'conditional', 'lt IE 9' ); $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> 'Roboto:100,300,400,500,700', 'subset' => 'latin', ); wp_enqueue_style('google-webfonts', add_query_arg($query_args, "$protocol://fonts.googleapis.com/css" ), array(), null); } add_action( 'wp_enqueue_scripts', 'pin_google_webfonts' ); // sidebar function pin_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', 'pin' ), 'id' => 'sidebar-1', 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'pin' ), 'before_widget' => '', 'before_title' => '
', '' ); ?>