Title: Theme settings colour values
Last modified: June 4, 2020

---

# Theme settings colour values

 *  Resolved [Ivan Lutrov](https://wordpress.org/support/users/ivanlutrov/)
 * (@ivanlutrov)
 * [6 years ago](https://wordpress.org/support/topic/theme-settings-colour-values/)
 * I’m uncertain whether this is by design but I don’t think so.
 * As far as I can see, all the theme settings colour related hex values are stored
   with a leading `#`, like these examples:
 * `[page_font_color] => #282828`
    `[button_text_color] => #1e73be` `[menu_logo_color]
   => #282828` `[page_accent_color] => #1e73be`
 * However, the `background_color` hex value is stored without a leading `#`, like
   this example:
 * `[background_color] => f8f8f8`
 * I’m coding some dynamic CSS generation stuff and I know how to cater for this
   anomaly but it would be nice if it were fixed.
    -  This topic was modified 6 years ago by [Ivan Lutrov](https://wordpress.org/support/users/ivanlutrov/).

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

 *  Theme Author [David Vongries](https://wordpress.org/support/users/davidvongries/)
 * (@davidvongries)
 * [6 years ago](https://wordpress.org/support/topic/theme-settings-colour-values/#post-12950146)
 * Hi [@ivanlutrov](https://wordpress.org/support/users/ivanlutrov/),
 * the background color settings aren’t technically coming from the theme.
 * they’re defined by WordPress core and enabled by adding theme support like this:
 *     ```
       // Custom background.
       add_theme_support(
       	'custom-background',
       	array(
       		'default-color'      => 'ffffff',
       		'default-image'      => '',
       		'default-repeat'     => 'repeat',
       		'default-position-x' => 'left',
       		'default-position-y' => 'top',
       		'default-size'       => 'auto',
       		'default-attachment' => 'scroll',
       	)
       );
       ```
   
 * Also, the output is handled by WordPress core so things may be a bit different
   for the background-color options than for the options we have registered in the
   customizer.
 * Hope that helps 🙂
 * Best,
    David
 *  Thread Starter [Ivan Lutrov](https://wordpress.org/support/users/ivanlutrov/)
 * (@ivanlutrov)
 * [6 years ago](https://wordpress.org/support/topic/theme-settings-colour-values/#post-12957494)
 * Yep, thanks!

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

The topic ‘Theme settings colour values’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/page-builder-framework/2.11.10/
   screenshot.jpg)
 * Page Builder Framework
 * [Support Threads](https://wordpress.org/support/theme/page-builder-framework/)
 * [Active Topics](https://wordpress.org/support/theme/page-builder-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/page-builder-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/page-builder-framework/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ivan Lutrov](https://wordpress.org/support/users/ivanlutrov/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/theme-settings-colour-values/#post-12957494)
 * Status: resolved