1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I remove the middle column?

Discussion in 'Content Management' started by Emie., Jul 4, 2008.

  1. #1
    I want to use this Wordpress theme, but without the middle column.

    How do I remove it?
     
    Emie., Jul 4, 2008 IP
    jkrish41 likes this.
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    405
    Best Answers:
    21
    Trophy Points:
    295
    #2
    Well, the css class and subsequent html stuff is <div class="col_mid_home">
    <div class="mid_box">

    Do you have the template? Most polished templates like that allow you to rearrange things from the admin panel. I have not however seen that template or used it. It looks nice though.

    One thing to consider is.... if you can move that functionality somewhere else if you need it. You will also have to rescale something other stuff perhaps.

    hope that helps.
    Nigel
     
    Nigel Lew, Jul 4, 2008 IP
  3. Emie.

    Emie. Banned

    Messages:
    1,263
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I still need help, I took out the middle column, but then the right column moved over, so I guess I need to make the left side of the page wider. Here's the homepage layout.

    <?php get_header(); ?>
    
    		<div class="col1_home">
    			
    			<div class="col1_home_box">
    				<?php include(TEMPLATEPATH . '/includes/featured.php'); ?>
             </div><!--/col1_home_nox-->
    			
             <div class="col1_home_box">
    				<?php
    					$layout = get_option('premiumnews_layout');
    					include('layouts/'.$layout);			
    				?>
              </div><!--/col1_home_box-->
                
              <?php
    				// Display Video
    				include(TEMPLATEPATH . '/includes/video.php'); 
    			?>
    
    		</div><!--/col1_home-->
            
            <div class="col_mid_home">
            
            	<div class="mid_box">
    
    	<?php
    	
    		$excluding = get_option('premiumnews_mid_exclude'); // Categories to exclude
    		
    		$cats = get_categories('exclude='. $ex_feat . ',' . $ex_vid. ',' . $excluding );
    		foreach ($cats as $cat) {
    		
    			query_posts('showposts=1&posts_per_page=-1&cat='.$cat->cat_ID);
    	
    	?>
            	
            	<?php while (have_posts()) : the_post(); ?>		
    
    				<div class="post-alt blog">	
    					
                   <p class="category"><span><?php echo $cat->cat_name; ?></span></p>
    					<h2><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    					<p class="posted_on">Posted on <?php the_time('d F Y'); ?> <?php edit_post_link(__('Edit'), ' &#183; ', ''); ?></p>
    		
    					<div class="entry">
    						<?php the_excerpt(); ?>
    					</div>
    				
    				</div><!--/post-->
    
    			<?php endwhile; ?>
    
    	<?php } ?>
    
            </div>
    
    		</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Code (markup):
     
    Emie., Jul 4, 2008 IP
    terminator69 likes this.
  4. arwen54

    arwen54 Active Member

    Messages:
    632
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    60
    #4
    just so you know you need to modify more than just index.php if you are doing that..You will have to make changes to single.php, archive.php, archives.php, page.php, and also 404.php

    you also might have to make changes to style.css
    that middle column contains the WordPress loop...without that loop your blog is broken!
    t's not as simple as you may think, and if you don't know what you are doing, you can really wreck your theme.
     
    arwen54, Jul 7, 2008 IP
  5. Emie.

    Emie. Banned

    Messages:
    1,263
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I got it all figured out. Thank you for the help though. :]
     
    Emie., Jul 7, 2008 IP