Advertisements

twentyeleven_header_style

Definition:
function twentyeleven_header_style() {}

Styles the header image and text displayed on the blog

Source code

function twentyeleven_header_style() {



	// If no custom options for text are set, let's bail

	// get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value

	if ( HEADER_TEXTCOLOR == get_header_textcolor() )

		return;

	// If we get this far, we have custom styles. Let's do this.

	?>

	<style type="text/css">

	<?php

		// Has the text been hidden?

		if ( 'blank' == get_header_textcolor() ) :

	?>

		#site-title,

		#site-description {

			position: absolute !important;

			clip: rect(1px 1px 1px 1px); /* IE6, IE7 */

			clip: rect(1px, 1px, 1px, 1px);

		}

	<?php

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

		else :

	?>

		#site-title a,

		#site-description {

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

		}

	<?php endif; ?>

	</style>

	<?php

}

14739

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: