WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get header textcolor

Description

Retrieves the color value of the text inside the header.

Usage

<?php get_header_textcolor() ?>

Parameters

None.

Return Values

(string) 

Gets and stores the color value of the text inside the header.

Examples

The example below gets the color of the text inside the header, stores it in a variable and then prints it within the echo statement.

<?php 
  $header_text_color = get_header_textcolor();
  echo "The color of the text inside the header is #". $header_text_color . "."; 
?>

Notes

  • Uses: HEADER_TEXTCOLOR

Change Log

Since: 2.1.0

Source File

get_header_textcolor() is located in wp-includes/theme.php.

Related

<?php header_textcolor(); ?>

See also index of Function Reference and index of Template Tags.