Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Elementor media control在live网站上不起作用(在编辑器上起作用)_Elementor - Fatal编程技术网

Elementor media control在live网站上不起作用(在编辑器上起作用)

Elementor media control在live网站上不起作用(在编辑器上起作用),elementor,Elementor,我在elementor中有媒体控制代码。当帖子没有特色图片时,此控件将在帖子存档中显示默认图片。当我选择默认图像时,左侧编辑器中的一切都非常完美,没有特色图像的帖子显示choosen图像,但当我打开live网站时,它会显示Elementor的默认图像placeholder.png(正如您在代码中看到的,如果没有选择任何内容,则为默认图像)。打印了$settings变量,图像定义的url为空。由于某些原因,我选择的图像并没有保存到live网站。我不知道发生了什么事 $this->add_co

我在elementor中有媒体控制代码。当帖子没有特色图片时,此控件将在帖子存档中显示默认图片。当我选择默认图像时,左侧编辑器中的一切都非常完美,没有特色图像的帖子显示choosen图像,但当我打开live网站时,它会显示Elementor的默认图像placeholder.png(正如您在代码中看到的,如果没有选择任何内容,则为默认图像)。打印了$settings变量,图像定义的url为空。由于某些原因,我选择的图像并没有保存到live网站。我不知道发生了什么事

$this->add_control(
        'image_def',
        [
            'label' => __( 'Choose DEF image', 'plugin-domain' ),
            'type' => \Elementor\Controls_Manager::MEDIA,
            'default' => [
                'url' => \Elementor\Utils::get_placeholder_image_src(),
            ],
        ]
    );