From 5e303d135f97068653c540b0024e3464c981da44 Mon Sep 17 00:00:00 2001 From: Salman Date: Mon, 22 Dec 2014 15:05:40 -0500 Subject: [PATCH] Remove color options in customizer --- inc/customizer.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/inc/customizer.php b/inc/customizer.php index 03efa58..a6f696e 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -13,7 +13,6 @@ function cs_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; - $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; } add_action( 'customize_register', 'cs_customize_register' ); @@ -70,32 +69,6 @@ function huskypress_parentSite_register( $wp_customize ) 'section' => 'title_tagline' ) ); - - - - - $wp_customize->add_setting( 'headingColor', //Give it a SERIALIZED name (so all theme settings can live under one db record) - array( - 'default' => 'blue', //Default setting/value to save - 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? - 'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting. - 'transport' => 'refresh' - ) - ); - $wp_customize->add_control('headingColor', array( - 'type' => 'radio', - 'label' => 'Site Title Color', - 'section' => 'colors', - 'choices' => array( - 'blue'=>'Blue', - 'black' => 'Black', - 'darkgrey' => 'Dark Grey', - 'lightgrey' => 'Light Grey', - 'white' => 'White' - ) - ) - ); - } add_action( 'customize_register', 'huskypress_parentSite_register' );