On my WP site I have a separate custom built PHP page, I would like to use the same WP header/footer (from Elementor Elementskit custom header/footer) to keep the experience consistent.
I have used the below code but its only pulling the standard WP theme header/footer but not displaying my custom header/footer built using the Elementskit plugin.
Can you please let me know what code I need to use to display the Elementskit header/footer?
<?php
require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
get_header();
while ( have_posts() ) : the_post();
the_content();
endwhile; // End of the loop.
get_footer();
?>
I tried the above PHP code and expected to bring in WP header/footer into my separate PHP page but it only displayed the default WP header/footer and not the one from Elementskit plugin.