Title: changing column width
Last modified: August 19, 2016

---

# changing column width

 *  [Ronnie](https://wordpress.org/support/users/ronniesblog/)
 * (@ronniesblog)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/)
 * can anyone tell me please the best way to go about changing columns widths? [http://www.highlandmeditation.com](http://www.highlandmeditation.com)

Viewing 9 replies - 16 through 24 (of 24 total)

[←](https://wordpress.org/support/topic/changing-column-width-1/?output_format=md)
[1](https://wordpress.org/support/topic/changing-column-width-1/?output_format=md)
2

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363635)
 * hi ronnie
    i still have the downloads – assuming that you haven’t changed anything
   important, i’ll work with them. so start with modifying index.php:
 * the first few lines should look like:
 *     ```
       <?php get_header(); ?>
   
       <div class="contentLayout">
   
       <div class="sidebar1">
       <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
       </div>
   
       <div class="content">
       ```
   
 * the last few lines:
 *     ```
       if(function_exists('get_search_form')) get_search_form();
       <?php endif; ?>
   
       </div>
       <div class="sidebar2">
       <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
       </div>
   
       </div>
       <div class="cleared"></div>
       <?php get_footer(); ?>
       ```
   
 * as you can see, only the div with sidebar1 got moved to the beginning of the 
   file.
 * if you have done other modifications, try and reverse them.
    there should only
   be one sidebar1. no changes to style.css necessary.
 *  Thread Starter [Ronnie](https://wordpress.org/support/users/ronniesblog/)
 * (@ronniesblog)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363636)
 * thanks bro… thats sorted out the home page just fine
 * the articles pages that rely on archive.php are still proving tricky when i try
   similar edits, i just can’t nail it, can you help?
 * the comments page page.php.. i’d love to get rid of the sidebars altogether if
   possible? though the course page relies on page.php too it seems and it would
   be good to have the sidebars resident there ….but not if its a fuss
 * thanks a million for your help
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363638)
 * as far as i can see, archive.php would require exactly the same treatment as 
   index.php.
 * same for single.php, if you want the sidebars left and right from the content.
   
   edit: and for search.php, also.
 * **comments **page – do you mean **contact **?
    i’ll have a look at it later today.
 *  Thread Starter [Ronnie](https://wordpress.org/support/users/ronniesblog/)
 * (@ronniesblog)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363639)
 * sorry yes i meant contact
 * and thanks all pages are fine now…. i was for some reason only doing the lower
   page edit on the other pages today, forgetting about the top bit.. !!
 * much appreciated your time
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363640)
 * if you want the contact page **not **to have the video sidebar, (i would suggest
   to keep the left sidebar)
    you could make following adjustment to **page.php**:
 * (make a backup copy of the working page.php first)
 * that is the code at the top, with a conditional statement that adds the sidebar
   only on pages other than ‘contact’:
 *     ```
       <?php get_header(); ?>
       <div class="contentLayout">
   
       <?php if(!is_page('contact')) : ?>
       <div class="sidebar1">
       <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
       </div>
       <?php endif; ?>
   
       <div class="content" <?php if(is_page('contact')) { echo ' style="width:743px;margin-right:10px;"' ; } ; ?>>
   
       <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       ```
   
 * you can see how it fits in instead of the existing code.
 * and at the end of style.css – add this line:
    `.your-message textarea {width:
   98%;}`
 * see if the result looks like you imagined,
    good luck 😉
 *  Thread Starter [Ronnie](https://wordpress.org/support/users/ronniesblog/)
 * (@ronniesblog)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363641)
 * that does the trick alchemyth
    thanks a lot for your help, for taking the time
 * if your in the mood i’ve got one more small thing that i haven’t been able to
   resolve and don’t know if its possible
 * in the articles section i’ve created a child category named methods so that i
   could have specific articles in there. but what i’ve found is that any article
   i put in ‘methods’ also duplicates in ‘articles’. is there a way to populate 
   child categories without the parent category duplication?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363642)
 * hi ronnie,
 * great you got your blog sorted.
    that child category is not my speciality, so
   maybe it’s the best if your start a new thread with a matching title.
 * good luck 😉
 *  Thread Starter [Ronnie](https://wordpress.org/support/users/ronniesblog/)
 * (@ronniesblog)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363646)
 * ok bro and thanks so much for your help
 * thank you too jose, your time appreciated
 *  [blacklodge](https://wordpress.org/support/users/blacklodge/)
 * (@blacklodge)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363686)
 * Hi guys. I’m having a similar problem as Ronnie. This is the site I’m working
   on:
 * [http://www.chasesportscomplex.com/home/](http://www.chasesportscomplex.com/home/)
 * I really want to put the sidebar1 on the left. Here is the code for my index.
   php
 *     ```
       <?php get_header(); ?>
   
       <div class="contentLayout">
   
       <div class="sidebar1">
       <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
       </div>
   
       <div class="content">
   
       <?php
       $prev_link = get_previous_posts_link(__('Newer Entries &raquo;', 'kubrick'));
       $next_link = get_next_posts_link(__('&laquo; Older Entries', 'kubrick'));
       ?>
   
       <?php if ($prev_link || $next_link): ?>
       <div class="Post">
           <div class="Post-body">
       <div class="Post-inner article">
   
       <div class="PostContent">
   
       <div class="navigation">
       			<div class="alignleft"><?php echo $next_link; ?></div>
       			<div class="alignright"><?php echo $prev_link; ?></div>
       </div>
   
       </div>
       <div class="cleared"></div>
   
       </div>
   
           </div>
       </div>
   
       <?php endif; ?>
   
       <?php if (have_posts()) : ?>
   
       <?php while (have_posts()) : the_post(); ?>
       <div class="Post">
           <div class="Post-body">
       <div class="Post-inner article">
       <?php ob_start(); ?>
       <h2 class="PostHeaderIcon-wrapper">
         <img src="<?php bloginfo('template_url'); ?>/images/PostHeaderIcon.png" width="20" height="20" alt="PostHeaderIcon" />
       <span class="PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
       <?php the_title(); ?>
       </a></span>
       </h2>
       <?php $metadataContent = ob_get_clean(); ?>
       <?php if (trim($metadataContent) != ''): ?>
       <div class="PostMetadataHeader">
       <?php echo $metadataContent; ?>
   
       </div>
       <?php endif; ?>
       <?php $icons = array(); ?>
       <?php if (!is_page()) : ?>
       <?php ob_start(); ?>
       <?php the_time(__('F jS, Y', 'kubrick')) ?>
       <?php $icons[] = ob_get_clean(); ?>
       <?php endif; ?>
       <?php if (!is_page()) : ?>
       <?php ob_start(); ?>
       <img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="14" height="14" alt="PostAuthorIcon" />
       <?php _e('Author', 'kubrick'); ?>: <a href="#" title="<?php _e('Author', 'kubrick'); ?>"><?php the_author() ?></a>
       <?php $icons[] = ob_get_clean(); ?>
       <?php endif; ?>
       <?php if (current_user_can( 'edit_post', $post->ID )) : ?><?php ob_start(); ?>
       <img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="14" height="14" alt="PostEditIcon" />
       <?php edit_post_link(__('Edit', 'kubrick'), ''); ?>
       <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
       <?php if (0 != count($icons)): ?>
       <div class="PostHeaderIcons metadata-icons">
       <?php echo implode(' | ', $icons); ?>
   
       </div>
       <?php endif; ?>
       <div class="PostContent">
       <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
   
       </div>
       <div class="cleared"></div>
       <?php $icons = array(); ?>
       <?php if (!is_page()) : ?>
       <?php ob_start(); ?>
       <img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="14" height="14" alt="PostCategoryIcon" />
       <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?>
       <?php $icons[] = ob_get_clean(); ?>
       <?php endif; ?>
       <?php if (!is_page() && get_the_tags()) : ?><?php ob_start(); ?>
       <img src="<?php bloginfo('template_url'); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon" />
       <?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ' '); ?>
       <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
       <?php if (!is_page() && !is_single()) : ?><?php ob_start(); ?>
       <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
       <?php $icons[] = ob_get_clean(); ?><?php endif; ?>
       <?php if (0 != count($icons)): ?>
       <div class="PostFooterIcons metadata-icons">
       <?php echo implode(' | ', $icons); ?>
   
       </div>
       <?php endif; ?>
   
       </div>
   
           </div>
       </div>
   
       <?php endwhile; ?>
   
       <?php if ($prev_link || $next_link): ?>
       <div class="Post">
           <div class="Post-body">
       <div class="Post-inner article">
   
       <div class="PostContent">
   
       <div class="navigation">
       			<div class="alignleft"><?php echo $next_link; ?></div>
       			<div class="alignright"><?php echo $prev_link; ?></div>
       </div>
   
       </div>
       <div class="cleared"></div>
   
       </div>
   
           </div>
       </div>
   
       <?php endif; ?>
   
       <?php else : ?>
       <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
       <p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'kubrick'); ?></p>
       if(function_exists('get_search_form')) get_search_form();
       <?php endif; ?>
   
       </div>
       <div class="sidebar2">
       <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
       </div>
   
       </div>
       <div class="cleared"></div>
       <?php get_footer(); ?>
       ```
   
 * Thanks

Viewing 9 replies - 16 through 24 (of 24 total)

[←](https://wordpress.org/support/topic/changing-column-width-1/?output_format=md)
[1](https://wordpress.org/support/topic/changing-column-width-1/?output_format=md)
2

The topic ‘changing column width’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 24 replies
 * 4 participants
 * Last reply from: [blacklodge](https://wordpress.org/support/users/blacklodge/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/changing-column-width-1/page/2/#post-1363686)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
