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

text_size default value for button in child module doesn't work #25

Open
annq2 opened this issue Sep 26, 2021 · 0 comments
Open

text_size default value for button in child module doesn't work #25

annq2 opened this issue Sep 26, 2021 · 0 comments

Comments

@annq2
Copy link

annq2 commented Sep 26, 2021

When defining buttons in child modules, default value for font-size doesn't work:

function get_advanced_fields_config() {
	return array(
		'button' => array(
			'button' => array(
				'label' => esc_html__( 'Button', 'et_builder' ),
				'text_size'           => array(
				      'default' => '56px',
				),
			), 
		),
	);
}

Value is always 0

Screenshot 2021-09-26 at 17 07 35

The problem I am experiencing is the font-size: 0px is being outputted on the frontend and buttons are not visible.

@annq2 annq2 changed the title text_size sefault value for button in child module doesn't work text_size default value for button in child module doesn't work Sep 26, 2021
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