Support » Plugin: Customizer Export/Import » Removes RGBA color picker functionality

  • Resolved jjds

    (@jjds)


    Hey,
    thanks for your plugin, it helps a lot.
    Now I’ve got a theme that has several RGBA color pickers, as I guess a few themes have. For the source of the RGBA extension and how to use it see https://github.com/BraadMartin/components/tree/master/customizer/alpha-color-picker.
    After importing settings with your plugin, the color pickers are not working anymore but show just a text field. The values are imported and saved correctly and the frontend uses them. I can even change the values on a text base. Just no picker anymore and I don’t know how to restore it. Even removing the values doesn’t restore it.
    An example of a relevant customizer setting in the theme would be:

    $wp_customize->add_setting(‘navbar_background’, array(‘default’ => ‘rgba(0,0,0,0.8)’, ‘transport’ => ‘refresh’ ) );

    $wp_customize->add_control(
    new Customize_Alpha_Color_Control( $wp_customize,’navbar_background_picker’,array(
    ‘label’ => __( ‘Navigation Bar Color Overlay’, ‘ds’ ),
    //’description’ => esc_html__( ‘Overlay Navbar color’ ),
    ‘section’ => ‘block_colors’,
    ‘settings’ => ‘navbar_background’,
    ‘show_opacity’ => true, // Optional.
    ‘palette’ => array(‘rgba(0,0,0,0.8)’, ‘rgba(100,100,100,0.8)’, ‘rgba(240, 240, 240,0.8 )’, ‘#2e4e6d’)
    )
    ));

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jjds

    (@jjds)

    Any idea what might cause this or at least how to get the color pickers back?

    Thread Starter jjds

    (@jjds)

    The theme includes the color picker with it’s original code that includes loading the js and css via get_stylesheet directory_uri instead of get_template_directory_uri.
    So this is related to creating a child theme and not to using your plugin.
    Thanks for your work!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removes RGBA color picker functionality’ is closed to new replies.