documents->get( get_the_ID() );
if ( $doc && method_exists( $doc, 'is_built_with_elementor' ) ) {
$is_elementor_built = (bool) $doc->is_built_with_elementor();
}
} catch ( \Throwable $e ) {
$is_elementor_built = false;
}
}
if ( ! $is_elementor_built ) {
$raw = (string) get_post_meta( get_the_ID(), '_elementor_data', true );
$is_elementor_built = ( '' !== trim( $raw ) );
}
// If demo import is completed or Elementor is used, render the page content.
if ( $demo_done || $is_elementor_built ) {
// Keep Elementor pages full-width; otherwise use the theme container so content isn't flush-left.
$wrap_container = ! $is_elementor_built;
echo '
Your site is ready. Import a demo to get the full design, pages, and settings.
Tip: After demo import, set the imported homepage as the Front Page.