Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm writing a new theme from scratch, based off the Toolbox theme. My installation of WP is straight out of the box. I added add_theme_support('custom-header'); to my functions.php file, but the "header" options screen does not appear in the dashboard. I can see it if I visit the site, in the toolbar at the top, but not in the dashboard. Am I missing something?

share|improve this question

2 Answers 2

From Codex:

If attached to a hook, it must be after_setup_theme. The init hook may be too late for some features.

Try this

if ( ! function_exists( 'mytheme_setup' ) ):
    function mytheme_setup() {
    add_theme_support( 'custom-header' );
    }
endif;
add_action( 'after_setup_theme', 'mytheme_setup' );

If you use Toolbox Theme, find in functions.php

function toolbox_setup() {

and add inside this function

add_theme_support('custom-header');

Links - Add Theme Support, Custom Headers

share|improve this answer
up vote 0 down vote accepted

I was told that add_theme_support('custom-header'); is not supposed to work as I expected yet. See the full answer I received here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.