Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

Customizer Container, Font Field - Two Color Pickers?

Open dmhendricks opened this issue 6 years ago • 0 comments

  • WordPress 4.9.7
  • PHP 7.1.17
  • Titan Framework 1.12.1 (Composer)

I seem to be getting two color picker fields when using the font field type in a Customizer container. What is the second one for / should it be there? Can it be removed with a parameter, or do I need to use CSS/JavaScript?

Thank you, Daniel.

titan-framework-cuztomizer-dual-color-fields

$titan = TitanFramework::getInstance( 'mytheme' );

$panel_typography = $titan->createThemeCustomizerSection([
	'name' => __( 'Typography', 'my-text-domain' ),
	'panel' => __( 'Site Style', 'my-text-domain' )
]);

$panel_typography->createOption([
	'name' => 'Default Font',
	'id' => 'custom_font_default',
	'type' => 'font',
	'desc' => __( 'Used for body, menu, footer, etc.', 'my-text-domain' ),
	'show_line_height' => false,
	'show_font_variant' => false,
	'show_text_shadow' => false,
	'default' => [ 'font-family' => 'Open Sans', 'color' => '#000000', 'font-size' => '13px', 'font-weight' => 'bold', 'font-style' => 'normal', 'letter-spacing' => 'normal', 'text-transform' => 'none' ]
]);

dmhendricks avatar Jul 30 '18 17:07 dmhendricks