• Hello all,

    Is there a way to make a static page with the sidebars but with the same header and footer??

    Thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • <?php
    
    /*
    
    Template Name: FILENAME
    
    */
    
    ?>
    
    <?php get_header(); ?>
    
    <div class="content">Content goes here...</div>
    
    <?php get_footer(); ?>

    Save this page as FILENAME.php and place it in your template directory. Now make a new page and select the page template as “FILENAME” (Edit filename as per your needs)

    Thread Starter hey2you

    (@hey2you)

    matt_rix, thanks for the answer, it works!!

    However, I cannot edit hte page in the “write page” console, all of the thing I type in were ignored. Does this mean that I have to edit it with an external writer??

    <?php
    
    /*
    
    Template Name: FILENAME
    
    */
    
    ?>
    
    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;
    '); ?>
    
    				<?php wp_link_pages(array('before' => '<strong>Pages:</strong> ', 'after' => '
    ', 'next_or_number' => 'number')); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    	<?php edit_post_link('Edit this entry.', '', '
    '); ?>
    	</div>
    
    <?php get_footer(); ?>

    Forgot to include the page functions
    Use this one. Just make sure you edit the DIV tags corresponding to your theme’s stylesheet.

    Thread Starter hey2you

    (@hey2you)

    I get it!! Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Page without sidebars’ is closed to new replies.