twentyeleven_admin_header_style

Definition:
function twentyeleven_admin_header_style() {}

Styles the header image displayed on the Appearance > Header admin panel.
Referenced via add_custom_image_header() in twentyeleven_setup().

Source code

function twentyeleven_admin_header_style() {

?>

	<style type="text/css">

	.appearance_page_custom-header #headimg {

		border: none;

	}

	#headimg h1,

	#desc {

		font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;

	}

	#headimg h1 {

		margin: 0;

	}

	#headimg h1 a {

		font-size: 32px;

		line-height: 36px;

		text-decoration: none;

	}

	#desc {

		font-size: 14px;

		line-height: 23px;

		padding: 0 0 3em;

	}

	<?php

		// If the user has set a custom color for the text use that

		if ( get_header_textcolor() != HEADER_TEXTCOLOR ) :

	?>

		#site-title a,

		#site-description {

			color: #<?php echo get_header_textcolor(); ?>;

		}

	<?php endif; ?>

	#headimg img {

		max-width: 1000px;

		height: auto;

		width: 100%;

	}

	</style>

<?php

}

14711

No comments yet... Be the first to leave a reply!

Leave a comment