• Hello,
    I’ve been scouring the forums and every time I think I’ve found the answer, it doesn’t work for me. So I’m resorting to posting a new thread.

    I have a page that I want to remove everything but the “body” – or, I guess the content. I don’t want a header or footer or anything else.

    I have a PHP that uses the custom page PHP as a base:

    get_header(); ?>
    
    		<div id="primary" class="content-area">
    			<div id="content" class="site-content" role="main">
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', 'page' ); ?>
    
    					<?php comments_template( '', true ); ?>
    
    				<?php endwhile; // end of the loop. ?>
    
    			</div><!-- #content .site-content -->
    		</div><!-- #primary .content-area -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    If I remove the get_header, get_sidebar, and get_footer lines, I get a PHP parse error when I load my page.

    My site is being a corporate firewall, otherwise I’d link to it here.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing headers & footers’ is closed to new replies.