August 20, 2013 at 7:08 am
#3415
Sanjip Shah
Participant
@Simon You could create a new page template for this just excluding the header and the footer part. Just create a new file page-template-landing.php. Inside it paste the following code and save the file inside the theme folder. Now you could use this template from the template drop down while creating a page. You could make adjustment to the code as yo like.
<?php
/**
* Template Name: Landing Template
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<?php
do_action( 'attitude_title' );
do_action( 'attitude_meta' );
do_action( 'attitude_links' );
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<div class="wrapper">
<div id="main" class="container clearfix">
<div id="container">
<?php
if( have_posts() ) {
while( have_posts() ) {
the_post();
the_content();
}
}
?>
</div>
</div>
</div>
</body>
</html>
Also, please make a child theme for this customization so that you won’t lose the changes when you update the parent theme.