1)Copy header.php assign name header-landing.php & footer.php assign name footer-landing.php
2)Copy page and create template landing.php:
Assign get_header('landing');
Assign get_footer('landing');
3)Create page and assign template.
4)Go wp-admin->setting->reading->Assign landing page as frontpage.
5)need seperate css:
go function.php add this code:
function resilientbridgeport_scripts_styles() {
$temp = get_page_template_slug( $post->ID);
if($temp == "page-templates/landing.php"){
wp_enqueue_style( 'patelextensions-style', get_stylesheet_directory_uri().'/css/custom.css' );
}
}
add_action( 'wp_enqueue_scripts', 'resilientbridgeport_scripts_styles',20);
6) Go main header file header.php
Add this code on top:
if(!is_admin() && !current_user_can( 'manage_options' ) && !is_front_page()){
wp_redirect( home_url());
exit;
}
Remove unwanted code on your own header-landing.php and footer-landing.php