Is there any way to disable Elementor dimension control field. I want to disable any specific field in the dimension control. but I can not find any way to do it. Can anyone help me, please?
Thanks.
This is elementor Code.
<code>$this->add_responsive_control(
'margin',
[
'label' => esc_html__('Margin', 'textdomain'),
'type' => ElementorControls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em', 'rem', 'custom'],
'selectors' => [
'{{WRAPPER}} .your-class' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
</code>
<code>$this->add_responsive_control(
'margin',
[
'label' => esc_html__('Margin', 'textdomain'),
'type' => ElementorControls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em', 'rem', 'custom'],
'selectors' => [
'{{WRAPPER}} .your-class' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
</code>
$this->add_responsive_control(
'margin',
[
'label' => esc_html__('Margin', 'textdomain'),
'type' => ElementorControls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em', 'rem', 'custom'],
'selectors' => [
'{{WRAPPER}} .your-class' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);