Skip to content

Customizer Container, Font Field - Two Color Pickers? #415

@dmhendricks

Description

@dmhendricks
  • 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' ]
]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions