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() )


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


	<style type="text/css">


		// Has the text been hidden?

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



		#site-description {

			position: absolute !important;

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

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



		// 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; ?>





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: Logo

You are commenting using your 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 )

Connecting to %s

%d bloggers like this: