get_template_directory_uri() . '/images/header.jpg', 'default-text-color' => 'ffffff', 'uploads' => true, 'flex-height' => true, 'flex-width' => true, 'width' => 1920, 'height' => 1200, 'wp-head-callback' => 'aaron_customize_css', 'admin-head-callback' => '', 'admin-preview-callback' => '', ) ) ); register_default_headers( array( 'mountain' => array( 'url' => '%s/images/header.jpg', 'thumbnail_url' => '%s/images/header.jpg', 'description' => __( 'Mountain', 'aaron' ) ) ) ); } add_action( 'after_setup_theme', 'aaron_custom_header_setup' ); function aaron_featured_image_header_css() { /*Are we displaying the featured image or the regular background? */ if( is_home() ){ $postid = get_option('page_for_posts'); }else{ $postid =get_the_ID(); } $featured_header = wp_get_attachment_image_src( get_post_thumbnail_id($postid), 'aaron-featured-image-header' ); // Single view if( is_singular() && aaron_get_meta( 'aaron_show_header' ) && aaron_get_meta( 'aaron_featured_image_header' ) && $featured_header ) {?> .site-header { background: url() ; background-size: ; } .site-header { background: url() ; background-size: ; } .site-header { background: url() ; background-size: ; }
'') { if( get_theme_mod( 'aaron_action_link' ) <> '') { echo ''; } echo esc_html( get_theme_mod( 'aaron_action_text' ) ); if( get_theme_mod( 'aaron_action_link' ) <> '') { echo ''; } }else{ echo '' . esc_html__("Click here to setup your Call to Action", 'aaron') . ''; } ?>