'333', 'default-image' => '', // Set height and width, with a maximum value for the width. 'height' => 240, 'width' => 980, // 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, 'category__in' => array($cat_id))); if( $latest_cat_post->have_posts() ) : while( $latest_cat_post->have_posts() ) : $latest_cat_post->the_post(); ?>

onclick="return false;">

>

Learn more »