title: "默认面板" post_status: publish comment_status: open taxonomy: category: - elementor-developers-docs post_tag: - Editor - Src - Repos


默认面板

默认情况下,当编辑器首次加载时,Elementor 会显示小部件面板。您可以更改此设置。

更改默认面板

使用以下代码将页面设置面板设为默认面板:

function change_default_elementor_panel( $config ) {

    $config = array_replace_recursive(
        $config,
        [
            'panel' => [
                'default_route' => 'panel/page-settings/settings'
            ]
        ]
    );

    return $config;

}
add_filter( 'elementor/document/config', 'change_default_elementor_panel' );

可用面板

以下是您可以用作默认面板的内置面板的部分列表: