> > ' . $ultp_header . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Core-rendered block template part. } } else { get_header(); } do_action( 'ultp_before_content' ); global $ultp_page_builder_id; if ( $ultp_page_builder_id ) { $ultp_page_id = $ultp_page_builder_id; } else { $ultp_page_id = ultimate_post()->builder_check_conditions( 'return_p' ); } $ultp_width = $ultp_page_id ? ( get_post_meta( $ultp_page_id, '__container_width', true ) ? get_post_meta( $ultp_page_id, '__container_width', true ) : '1140' ) : '1140'; $ultp_sidebar = $ultp_page_id ? get_post_meta( $ultp_page_id, '__builder_sidebar', true ) : ''; $ultp_widget_area = $ultp_page_id ? get_post_meta( $ultp_page_id, '__builder_widget_area', true ) : ''; $ultp_has_widget = ( $ultp_sidebar && $ultp_widget_area != '' ) ? true : false; echo '
'; if ( $ultp_has_widget && $ultp_sidebar == 'left' ) { echo '
'; if ( is_active_sidebar( $ultp_widget_area ) ) { dynamic_sidebar( $ultp_widget_area ); } echo '
'; } echo '
'; if ( $ultp_page_id ) { /* Content Filtering for elementor & divi */ $ultp_builder_type = ''; $ultp_body_class = get_body_class(); $ultp_divi_settings = ultimate_post()->get_setting( 'ultp_divi' ); $ultp_elem_settings = ultimate_post()->get_setting( 'ultp_elementor' ); if ( $ultp_divi_settings == 'true' && class_exists( 'ET_Builder_Module' ) && in_array( 'et-fb', $ultp_body_class ) ) { $ultp_builder_type = 'divi'; } elseif ( did_action( 'elementor/loaded' ) && $ultp_elem_settings == 'true' && in_array( 'elementor-editor-active', $ultp_body_class ) && in_array( 'elementor-editor-wp-post', $ultp_body_class ) ) { $ultp_builder_type = 'elementor'; } /* Content Filtering for elementor & divi */ ultimate_post()->get_post_content( $ultp_page_id, $ultp_builder_type ); } else { the_content(); } echo '
'; if ( $ultp_has_widget && $ultp_sidebar == 'right' ) { echo '
'; if ( is_active_sidebar( $ultp_widget_area ) ) { dynamic_sidebar( $ultp_widget_area ); } echo '
'; } echo '
'; do_action( 'ultp_after_content' ); if ( wp_is_block_theme() ) { ?> ' . $ultp_footer . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Core-rendered block template part. } // wp_head(); // wp_head(); all ready wp head declared in header, i can not find any conflict to check that, if you find any conflict for removing then use it wp_footer(); } else { get_footer(); }