Full with page limited height
-
Hi I am using wordpress4.1 and using 2015 theme with a child theme.
I wanted to make a full width page so i followed a tutorial posted in here and made a php template in my child theme using the code they supplied.
I can open and edit the template but my problem is that the page has a limited length. I can only add content inside a certain area but when i try to add more down the bottom of the page the page wont expand.Here is the code i used in my child theme can some one tell me if there is something missing or if they can give me some code so the page does not have a limited length. Thanking you in advance.
<?php
/**
Template Name: Custom Full Width
*/
?>
<html>
<head>
<?php wp_head(); ?>
<style>
body:before,
#sidebar,
#colophon,
.entry-footer {
display:none;
}
.site-content {
margin: 0 auto;
float: none;
width: 100%;
max-width: 1200px;
}
</style>
</head>
<body>
<div id=”primary” class=”content-area”>
<main id=”main” class=”site-main” role=”main”><?php
// Start the loop.
while ( have_posts() ) : the_post();// Include the page content template.
get_template_part( ‘content’, ‘page’ );// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;// End the loop.
endwhile;
?></main><!– .site-main –>
</div><!– .content-area –>
</body>
</html>
The topic ‘Full with page limited height’ is closed to new replies.