kirki icon indicating copy to clipboard operation
kirki copied to clipboard

Bug with typo control

Open vlthemes opened this issue 2 years ago • 1 comments

Issue description:

This is my config.php file. When I change font in live customizer to different, all values (variant, font-size, line height etc) will be removed, but the font will be new. I need to change each option (variant, font-size etc) to save all of them. It's annoying....

Version used:

4.0.21

Using theme_mods or options?

theme_mods

PHP error messages that might be related


JS error messages that might be related


Code to reproduce the issue (config + field(s))

VLT_Options::add_field( array(
	'type' => 'typography',
	'settings' => 'typography_button',
	'section' => 'typography_buttons',
	'label' => esc_html__( 'Button Typography', '@@textdomain' ),
	'priority' => $priority++,
	'choices' => apply_filters(
		'vlthemes_fonts_choices', [
			'variant' => [
				'500',
			]
		]
	),
	'default' => array(
		'font-family' => 'Roboto',
		'subsets' => [ 'latin' ],
		'variant' => '500',
		'font-size' => '14px',
		'line-height' => '1.4',
		'letter-spacing' => '0',
		'text-transform' => 'none'
	),
	'output' => array(
		array(
			'element' => '.vlt-btn, input[type="button"]'
		)
	)
) );

vlthemes avatar Jun 29 '22 20:06 vlthemes

P.S. all looks good in customizer, but not applied to live site.

https://take.ms/yHFcF

All resaved value here. But not default font size and other props.

vlthemes avatar Jun 29 '22 20:06 vlthemes