Advertisements

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

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: