I have wordpress Child Theme and I add php file to this child theme. Also I want to use wordpress function 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[0] . '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