Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allways display label and description text above color-picker button #66

Open
onedrop2000 opened this issue Apr 17, 2018 · 0 comments
Open

Comments

@onedrop2000
Copy link

onedrop2000 commented Apr 17, 2018

Hi there,
When I use the default WP_Customize_Color_Control Class the labeland descirption are displayed above the color-picker, but when I use the WP_Customize_Color_Control Class the labeland descriptiontext is shown after clicking on the color picker button, so the text is hidden.

See on the picture. The first picker is the WP_Customize_Color_Control, the rest is the WP_Customize_Color_Control Class.
bildschirmfoto 2018-04-17 um 11 52 19

The Code looks like that:

<?php
    // Text Color
    $wp_customize->add_setting( 'nav_text_color', array(
      'default'           => '',
    ) );
    $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'nav_text_color', array(
      'label'    => esc_html__( 'Custom Style Options', 'onedrop_template' ),
      'description' => esc_html__( 'Text Color', 'onedropTemplate' ),
      'section'  => 'header_menulayout_section',
      'settings' => 'nav_text_color',
      'show_opacity' => true, // Optional.
      'priority' => 10
    ) ) );

    // Background Nav Color
    $wp_customize->add_setting( 'nav_background_color', array(
      'default'           => '',
    ) );
    $wp_customize->add_control( new Customize_Alpha_Color_Control( $wp_customize, 'nav_background_color', array(
      'description' => esc_html__( 'Background Color', 'onedropTemplate' ),
      'section'  => 'header_menulayout_section',
      'settings' => 'nav_background_color',
      'priority' => 10
    ) ) );
?>

Any Ideas? Thanks :))

@onedrop2000 onedrop2000 changed the title Allway display label and description text Allways display label and description text Apr 17, 2018
@onedrop2000 onedrop2000 changed the title Allways display label and description text Allways display label and description text above picker button Apr 17, 2018
@onedrop2000 onedrop2000 changed the title Allways display label and description text above picker button Allways display label and description text above color-picker button Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant