Title: (TwentyTwelve) Customize header text function
Last modified: August 20, 2016

---

# (TwentyTwelve) Customize header text function

 *  [RKerckhoffs](https://wordpress.org/support/users/rkerckhoffs/)
 * (@rkerckhoffs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/twentytwelve-customize-header-text-function/)
 * Hello everybody!
 * At the moment am working with the TwentyTwelve theme. I am trying to change the
   customize functions.
 * With the theme you can only change the color of the title and tagline. What I
   want is that the user can change the font, size and color. Is it also possible
   to change the colors of the title and tagline seperate? (for e.g. the title is
   yellow and the tagline is blue.)? Also how can I add a second colorpicker in 
   the customize window?
 * When I look at the next code I think I have to change/ add something in the else:
   ?
   > .site-title a, .site-description { color: #<?php echo $text_color; ?> !
 * Could something help me with this problem?
 * Thank you in advance!
 *     ```
       function twentytwelve_header_style() {
       	$text_color = get_header_textcolor();
   
       	// If no custom options for text are set, let's bail
       	if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) )
       		return;
   
       	// If we get this far, we have custom styles.
       	?>
       	<style type="text/css">
       	<?php
       		// Has the text been hidden?
       		if ( ! display_header_text() ) :
       	?>
       		.site-title,
       		.site-description {
       			position: absolute !important;
       			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.
       		else :
       	?>
       		.site-title a,
       		.site-description {
       			color: #<?php echo $text_color; ?> !important;
       		}
       	<?php endif; ?>
       	</style>
       	<?php
       }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/twentytwelve-customize-header-text-function/#post-3563793)
 * Are you using a Child Theme? You absolutely should not be making modifications
   to the default theme.
 * [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
 *  Thread Starter [RKerckhoffs](https://wordpress.org/support/users/rkerckhoffs/)
 * (@rkerckhoffs)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/twentytwelve-customize-header-text-function/#post-3563830)
 * It is just for testing purposes. So without a Child theme. Could you still explain
   to me how to solve the problem?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘(TwentyTwelve) Customize header text function’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [header](https://wordpress.org/support/topic-tag/header/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [RKerckhoffs](https://wordpress.org/support/users/rkerckhoffs/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/twentytwelve-customize-header-text-function/#post-3563830)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
