You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
// Define the fields that the module will accept.publicfunctionget_fields()
{
returnarray(
// 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 text was updated successfully, but these errors were encountered:
Moccassins
changed the title
Default Value for Hight and Width
Default Value for Height and Width
Sep 22, 2023
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:
The text was updated successfully, but these errors were encountered: