the `sticky_parent` control, and still make it work properly on the frontend. if ( $element instanceof Element_Section && Plugin::elementor()->editor->is_edit_mode() ) { $conditions['isInner'] = true; } $element->add_control( 'sticky_parent', [ 'label' => esc_html__( 'Stay In Column', 'elementor-pro' ), 'type' => Controls_Manager::SWITCHER, 'condition' => $conditions, 'render_type' => 'none', 'frontend_available' => true, ] ); } $element->add_control( 'sticky_divider', [ 'type' => Controls_Manager::DIVIDER, ] ); } private function get_asset_conditions_data() { return [ 'scripts' => [ [ 'name' => 'e-sticky', 'conditions' => [ 'terms' => [ [ 'name' => 'sticky', 'operator' => '!==', 'value' => '', ], ], ], ], ], ]; } private function add_actions() { add_action( 'elementor/element/section/section_effects/after_section_start', [ $this, 'register_controls' ] ); add_action( 'elementor/element/container/section_effects/after_section_start', [ $this, 'register_controls' ] ); add_action( 'elementor/element/common/section_effects/after_section_start', [ $this, 'register_controls' ] ); } }