'',
'default-text-color' => '2b2b2b',
'width' => 1440,
'height' => 530,
'flex-width' => false,
'flex-height' => true,
'wp-head-callback' => 'pirate_rogue_header_style',
);
add_theme_support( 'custom-header', $args );
}
add_action( 'after_setup_theme', 'pirate_rogue_custom_header_setup');
/*-----------------------------------------------------------------------------------*/
/* Style the header text displayed on the blog.
/*-----------------------------------------------------------------------------------*/
function pirate_rogue_header_style() {
return;
}
/*-----------------------------------------------------------------------------------*/
/* Own Custom Logo function to get logo without link on startpage and with defined classes
/*-----------------------------------------------------------------------------------*/
if ( ! function_exists( 'pirate_rogue_get_custom_logo' ) ) :
function pirate_rogue_get_custom_logo($imgclass='custom-logo', $linkclass = 'custom-logo-link', $linktitle='') {
$html = '';
$switched_blog = false;
$blog_id = 0;
$custom_logo_id = get_theme_mod( 'custom_logo' );
if ( $custom_logo_id ) {
$html = ' $imgclass
) );
$html .= '';
} elseif ( is_customize_preview() ) {
// If no logo is set but we're in the Customizer, leave a placeholder (needed for the live preview).
$html = sprintf( '
',
esc_url( home_url( '/' ) )
);
}
return $html;
}
endif;