Skip to content
This repository has been archived by the owner. It is now read-only.

Remove color options in customizer #83

Merged
merged 1 commit into from Dec 22, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 0 additions & 27 deletions inc/customizer.php
Expand Up @@ -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' );

Expand Down Expand Up @@ -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' );
Expand Down