'333', 'default-image' => '', // Set height and width, with a maximum value for the width. 'height' => 480, 'width' => 1960, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'bootstrap_header_style', 'admin-head-callback' => 'bootstrap_admin_header_style', 'admin-preview-callback' => 'bootstrap_admin_header_image', ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'bootstrap_custom_header_setup', 11 ); /** * Style the header text displayed on the blog. */ function bootstrap_header_style() { $header_image = get_header_image(); $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail. if ( empty( $header_image ) && $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> Header admin panel. */ function bootstrap_admin_header_style() { ?> Header admin panel. */ function bootstrap_admin_header_image() { ?>
1, 'post__in' => get_option( 'sticky_posts' ),'ignore_sticky_posts' => 1 )); if( $sticky_posts->have_posts() ) : while( $sticky_posts->have_posts() ) : $sticky_posts->the_post(); ?>

Learn more »