Skip to content

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

@annq2

Description

@annq2

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.

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