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

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

Open
dmhendricks opened this issue Jul 30, 2018 · 0 comments
Open

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

dmhendricks opened this issue Jul 30, 2018 · 0 comments

Comments

@dmhendricks
Copy link

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