WordPress.org

Ready to get started?Download WordPress

Forums

Newbie help editing 2 column page template into 1 column (1 post)

  1. slc0
    Member
    Posted 5 years ago #

    I am a newbie to php, css etc. I need to create a second page template same as the original only instead of right and left columns include the left column only to leave more room for a forum plugin. Could someone help me step by step to remove the right column?

    <?php
    /*
    Template Name: Page
    */
    ?>
    
     { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
    ?>
    <?php get_header(); ?>
    			<div id="outer-column-container">
    				<div id="inner-column-container">
    					<div id="source-order-container">
    						<div id="middle-column">
    							<div class="inside">
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    		<div class="post-page" id="post-<?php the_ID(); ?>">
    			<h2><?php the_title(); ?></h2>
    			<div class="entry">
    				<?php the_content('<p class="serif">More &raquo;</p>'); ?>
    
    				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    
    		<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    
    		<?php if ($ata_comments_on_pages == "Yes") {
    		comments_template(); } ?>
    							</div>
    						</div>
    						<div id="left-column">
    							<div class="inside">
    <?php get_sidebar(); ?>
    							</div>
    						</div>
    						<div class="clear-columns"><!-- do not delete --></div>
    					</div>
    					<div id="right-column">
    						<div class="inside">
    <?php include ('sidebar2.php'); ?>
    						</div>
    					</div>
    					<div class="clear-columns"><!-- do not delete --></div>
    				</div>
    			</div>
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic