The Title says it all, how can I provide a different default value than "auto" for my Module? I tried it multiple times with different approaches and also asked several AI Tools for help without success. I can't even change the default description of the Width and Height setting. So how can I do that?
// Define the fields that the module will accept.
public function get_fields()
{
return array(
// Width attribute
'width' => array(
'label' => esc_html__('Breite', 'et_builder'),
'type' => 'text',
'option_category' => 'layout',
'description' => esc_html__('Geben Sie die gewünschte Breite ein.', 'et_builder'),
'default' => '200px',
'toggle_slug' => 'size',
),
// Height attribute
'height' => array(
'label' => esc_html__('Höhe', 'et_builder'),
'type' => 'text',
'option_category' => 'design',
'description' => esc_html__('Geben Sie die gewünschte Höhe ein.', 'et_builder'),
'default' => '300px',
'toggle_slug' => 'size',
),
);
}
The Title says it all, how can I provide a different default value than "auto" for my Module? I tried it multiple times with different approaches and also asked several AI Tools for help without success. I can't even change the default description of the Width and Height setting. So how can I do that?
Thats one of my tries: