How to Replace $args in twentytwelve_custom_header_setup Using custom-header?

I’ve been Googlin my butt off… now that I’ve made the Twenty Twelve theme 1100px wide, I’d love to adjust the width of the header image. I’m just not sure how to override the args of the parent theme from a child theme…. just the width really, any ideas?

One Reply to “How to Replace $args in twentytwelve_custom_header_setup Using custom-header?”

  1. Doh… I have no idea what I did wrong…. but here it is!

    function twentytwelvechild_custom_header_setup() {
    	$header_args = array(
    		'width' => 1110,
    		'height' => 228
    	 );
    	add_theme_support( 'custom-header', $header_args );
    }
    add_action( 'after_setup_theme', 'twentytwelvechild_custom_header_setup' );
    

    I’ll post a tutorial very soon covering everything needed to adjust the width of the theme!

Leave a Reply