How to set the default image of repeater media control?
-
The image url is correct, when I print using var_dump()/print_r() function.
The default image doesn’t even show the placeholder image using “\Elementor\Utils::get_placeholder_image_src()”$this->add_control( 'image_slider', [ 'label' => esc_html__( 'Image Slider', 'furnixar-core' ), 'type' => \Elementor\Controls_Manager::REPEATER, 'fields' => [ [ 'name' => 'image', 'label' => esc_html__( 'Image', 'furnixar-core' ), 'type' => \Elementor\Controls_Manager::MEDIA, 'default' => [ 'url' => \Elementor\Utils::get_placeholder_image_src(), ] ] ], 'default' => [ [ 'image' => [ 'url' => plugins_url( 'hero/img/sofa.png', __FILE__ ) ] ] ], 'condition' => [ 'banner_style' => 'banner-3' ] ] );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to set the default image of repeater media control?’ is closed to new replies.