File: functions.php
It’s as easy as adding this to your functions.php file (of course having $wpse67109
set).
add_theme_support( 'custom-header', $wpse67109_defaults );
File: index.php
or any other template
Simply don’t add the whole get_head_image()
and get_custom_header()->foo
stuff anywhere.
Your headline template part could look like the following example:
<header>
<hgroup>
<h1 class="site-title">
<?php
if ( display_header_text() )
{
printf(
'<a href="https://wordpress.stackexchange.com/questions/67109/%s" title="https://wordpress.stackexchange.com/questions/67109/%s" rel="home">%s</a>'
,esc_url( home_url( "https://wordpress.stackexchange.com/" ) )
,esc_attr( get_bloginfo( 'name', 'display' ) )
,get_bloginfo( 'name' )
);
}
?>
</h1>
<?php if ( '' !== get_bloginfo( 'description' ) ) : ?>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php endif; ?>
</hgroup>
</header>