beans_header_image

Print the header image css inline in the header.

beans_header_image( )

Return: (void)

Source

function beans_header_image() {

	if ( ! current_theme_supports( 'custom-header' ) || ! ( $header_image = get_header_image() ) || empty( $header_image ) ) {
		return;
	}

	?><style type="text/css">
		.tm-header {
			background-image: url(<?php echo esc_url( $header_image ); ?>);
			background-position: 50% 50%;
			background-size: cover;
			background-repeat: no-repeat;
		}
	</style><?php

}