documents->get( $post_id ); if ( $doc && method_exists( $doc, 'is_built_with_elementor' ) ) { return (bool) $doc->is_built_with_elementor(); } } catch ( \Throwable $e ) { // Fail silently; treat as not built with Elementor. } } return false; } $show_theme_hero = true; if ( is_page() && bongoto_woocommerce_is_elementor_built( get_the_ID() ) ) { // If Elementor is used for this page, hide the theme hero. $show_theme_hero = false; } if ( $show_theme_hero ) { // Theme Hero (customizable via Customizer). get_template_part( 'template-parts/hero/hero' ); } else { // Minimal placeholder to keep spacing consistent if needed. get_template_part( 'template-parts/hero/hero-placeholder' ); } ?>