WordPress.org

Codex

Function Reference/get background color

Contents

Description

Retrieve the custom background color for the current active theme.

Usage

<?php get_background_color(); ?>

Parameters

None.

Return Values

(string) 
The hex value of the background color without the preceding hash tag.
(null) 
Returns an empty string if custom backgrounds are not supported by the current theme or if none is set and no default is given.

Examples

Notes

Change Log

Since: 3.0.0

Source File

get_background_color is located in wp-includes/theme.php.

Related

This page is marked as incomplete. You can help Codex by expanding it.
See also index of Function Reference and index of Template Tags.