[wp-trac] [WordPress Trac] #38093: WP_Customize_Color_Control - there is no option for transparent color
WordPress Trac
noreply at wordpress.org
Mon Sep 19 09:40:35 UTC 2016
#38093: WP_Customize_Color_Control - there is no option for transparent color
-------------------------------------------------+-------------------------
Reporter: mukesh27 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting
Component: Customize | Review
Severity: normal | Version: 4.6.1
Focuses: javascript, administration, | Keywords:
performance |
-------------------------------------------------+-------------------------
In wordpress customizer there is no option for transparent color if user
don't want to add color. also opacity option is not there is it possible
to add this in feature?
'''php code :'''
{{{#!php
<?php
/* Navigation Background Color */
$wp_customize->add_setting( 'add_navigation_bg_color_header', array(
'default' => '#ffffff',
'sanitize_callback' => 'sanitize_hex_color',
'transport' => 'postMessage'
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize,
'add_navigation_bg_color_header', array(
'label' => esc_attr__( 'Navigation Background
Color', 'paperio' ),
'section' => 'add_navigation_section',
'settings' =>
'add_navigation_bg_color_header',
) ) );
/* End Navigation Background Color */
?>
}}}
if we add transparent color in color picker and add new control for rgba()
so it's easy to customize any developer and make more functional theme.
[[Image()]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38093>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list