badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: Landing Pages Using WP Lead Plus

#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.