I have a WordPress Child Theme and I have added a php file to this child theme. Also I want to use WordPress functions in this file ( I want to show header, menu and footer )
So I try
<?php $parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] ); require_once( $parse_uri . 'wp-load.php' ); ?>
Also I try to add header and footer
<?php get_header();?> //my content <?php get_footer();
But it seems it can't load all css/js files and page have bad styling.