Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Customizer for link color

  • Loading branch information...
commit e8002d4650f2912644cc1c7672aaf171460bd804 1 parent 6175a28
@bueltge authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 inc/theme-customize.php
View
7 inc/theme-customize.php
@@ -81,6 +81,13 @@ public function customize_register( $wp_customize ) {
'settings' => $this->option_key . '[text_color]',
) ) );
+ // add field for text color in default section for 'colors'
+ $wp_customize->add_setting( $this->option_key . '[link_color]', array(
+ 'default' => $defaults['link_color'],
+ 'type' => 'option',
+ 'capability' => 'edit_theme_options',
+ ) );
+
// add color field include color picker for link color
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, $this->option_key . '_link_color', array(
'label' => __( 'Link Color', 'documentation' ),
Please sign in to comment.
Something went wrong with that request. Please try again.