Created
March 25, 2014 21:41
-
-
Save illucent/9771984 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements custom header styles for Child2013. | |
* See http://codex.wordpress.org/Custom_Headers | |
* | |
* @package WordPress | |
* @subpackage Twenty_Thirteen | |
* @since Twenty Thirteen 1.0 | |
*/ | |
function child2013_custom_header_setup() { | |
$args = array( | |
// Callbacks for styling the header. | |
'wp-head-callback' => 'child2013_header_style', | |
); | |
} | |
add_action( 'after_setup_theme', 'child2013_custom_header_setup' ); | |
/** | |
* Styles the header text displayed on the blog. | |
* | |
* get_header_textcolor() options: Hide text (returns 'blank'), or any hex value. | |
* | |
* @since Twenty Thirteen 1.0 | |
*/ | |
function child2013_header_style() { | |
?> | |
<style type="text/css" id="twentythirteen-header-css"> | |
<?php | |
// Has the text been hidden? | |
if ( ! display_header_text() ) : | |
?> | |
.site-title, | |
.site-description { | |
position: absolute; | |
clip: rect(1px 1px 1px 1px); /* IE7 */ | |
clip: rect(1px, 1px, 1px, 1px); | |
} | |
<?php | |
// If the user has set a custom color for the text, use that. | |
elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) : | |
?> | |
.site-title, | |
.site-description { | |
color: #<?php echo esc_attr( $text_color ); ?>; | |
} | |
<?php endif; ?> | |
</style> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://wpti.ps/tag/aqua-resizer/