As per comments: this is what the Customizer API is for. In the case of the header there are a dozen parameters to tweak the behaviour with. Like this:
$defaults = array(
'default-image' => '',
'width' => 0,
'height' => 0,
'flex-height' => false,
'flex-width' => false,
'uploads' => true,
'random-default' => false,
'header-text' => true,
'default-text-color' => '',
'wp-head-callback' => '',
'admin-head-callback' => '',
'admin-preview-callback' => '',
);
add_theme_support( 'custom-header', $defaults );
Related Posts:
- Using classes instead of global functions in functions.php
- Add custom classes to anchor in wp_nav_menu
- Any official way to create an admin theme?
- Template for individual post designs
- Show a WP 3.0 Custom Menu in an HTML Select with Auto-Navigation?
- Front End Post Submit Form
- Select menu on browser resize
- Extend walker – navigation, adding data attribute to a tag
- Displaying wp menus by name without using theme locations
- How to highlight the current page in the nav menu?
- Upgrading a custom theme through the Dashboard
- Setting a Default ‘Theme Location’ When Creating a Menu
- Theme Customizer not loading
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Custom Nav Walker Displaying Values in Sub Menu
- Version control for both Vagrant config and themes being developed [closed]
- Where is definied the theme location for the main menu in a WordPress template?
- How to correctly add JQuery in a WP theme?
- How to add a second stylesheet to the editor
- which is the best way to customize nav-menu-template.php?
- WP 3.1 upgrade breaks AutoFocus+ theme
- My Admin bar covers my sticky navbar [closed]
- Limitations when modifying wp_title with a filter
- How to edit theme functions file to modify pagination?
- Customizer: save setting/control content to post/page
- Where am I doing wrong in my theme menu?
- Custom Navigation build using wp_nav_menu and walker
- Customize how a WordPress theme looks like in the Theme Selector
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Integrate WooCommerce theme with a WordPress theme [closed]
- Admin: sub menu doesnt display under apperance when activate my themes
- Widget Option is Missing
- How do you use WordPress for a website that’s not in a blog format?
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- 3 Level Deep Navigation Menu Not Showing All Levels
- How to add menù section to my WordPress template?
- Thesis -style Navigation
- searchform.php doesn’t work properly
- Customizer: get_preview_url() inside customize_save_after hook
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Create theme for mobile phones and tablets only?
- How to add custom page elements to the WYSIWYG editor?
- Why is my container argument not working for wp_nav_menu() [closed]
- Some doubts about WordPress handle the horizontal main menu visualization
- Can’t change theme name
- Remove/Hide a Widget on a Custom Template
- how to create/register menu items that can be added to menus later
- Why nav_menu_css_class doesn’t work with apply_filters?
- Theme: dropdown hover menu not showing up in IE/Edge
- Is hand coding required at all?
- Menu names not getting translated
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- WordPress menu walker – Get parent item text inside end_lvl function
- How to dowload and edit content of a website
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- Any way to permanently translate themes?
- How to prevent XSS attack in wordpress theme?
- Best strategy for providing theme options using customizer
- Primary Menu Showing All Pages With No Sub-Nav
- What’s the policy for building a theme that doesn’t support widgets/menus?
- How Does One Create a Global Variable Repository
- How to convert that page to a wordpress template? [closed]
- How to make navigation a list without a plugin? [duplicate]
- Turning WordPress Into full-featured website?
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?
- Dynamic nav menu with icons [closed]
- The the_post_thumbnail without srcset?
- Why I can’t add a CSS style in this WordPress theme?
- Single Page WordPress Theme – Using page templates
- Which theme foundry has clean coded themes, where code is poetry [closed]
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- How can a Theme Contain no Header File or Footer File?
- Some translations do not work in my template class
- WordPress not registering Theme Customization Section
- Why is the Links Manager visible?
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- Customizer: Output default value in Customizer CSS
- Theme Development: Starter Content after hook
- Is there any WordPress theme for Self Storagae just like Spacer [closed]
- If you were to start using a WordPress framework today, which one would you use? [closed]
- WordPress Template Part in iFrame
- Is it possible to have a theme that uses only one single page?
- Adding a gallery to my first theme
- Valid SQL query not returning results
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Converting a theme to a child theme in a network
- Programatically Created Menu not Editable in Dashboard
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- Is it possible to echo a woocommerce prouct attribute discription?
- Modify comments_popup_link output
- Can you create a custom page with content in the center already defined?
- How to migrate the menu from the site on my own theme in WordPress?
- wp_nav_menu in 3.7 add name class nav navbar-nav
- RSS feed url showing page not found. How to solve it?
- php file child theme directory not overriding parent theme php file [duplicate]
- How do I change the tagline input to textarea?
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?