Support » Fixing WordPress » Header Text Color

  • Hey!

    I’m pretty new to WordPress I am creating a custom theme and recently updated to 3.4. Atm I’m configuring the header, to make it easy for upcoming users change it. I managed witout any problems getting the Custom Header Picture to work but I can not get the text to change color or be enabled/disabled in the Customize area or Header area under Appearance.

    The html-code for the header looks like following atm:

    <header role="banner">
    <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
    <h1 id="site-title">
    <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>

    and in functions.php:

    $args= array(
    	'width'         => 1000,
    	'height'		=> 200,
    	'default-image' => get_template_directory_uri() . '/images/header.png',
    	'uploads'       => true,
    	'flex-height'   => true,
    	'default-text-color' => '#fff',
    	'header-text' => true,
    add_theme_support( 'custom-header', $args);

    I hope anyone can help me 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    Not that article in particular but it didn’t give me any new information.

    It’s just like

    'default-text-color' => '#fff',
    	'header-text' => true,

    doesn’t have any effect, or applies any CSS on:

    <h1 id="site-title">
    <a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a>

    Neither in Customize or the site it self. When I’m looking at Twenty Eleven I see that for example

    #site-title a, #site-description {
    #F50559 !important;

    applies to the header text when moving around the color-wheel. (When looking at the Matched CSS rules in Chrome)

    But they do not appear on my own theme.

    I am VERY new to this and am also having trouble changing the color of header text from black to white, even though in preview it changes fine. I did hit update. Don’t know much at all of code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header Text Color’ is closed to new replies.