• I am trying to remove extra breaks in the yellow background between the posts’ content and the comments section. I can move the comments inside of all div’s in post.php and that removes all breaks, but that is not what I want. I chose this theme because I want some breaks in the background for the wallpaper to peek through.

    There ought to be a break between the content and the comments, but not 3 of them. There are 2 extra. I do not know whether to change comments.php or the css. Note: the comment.php is from WP default theme; it’s a long story. The rest is a much modified Fluorish theme.

    Also, on my “pages,” accessed by menu, there is no break at all between content and comments. I would like to insert the break there.

    Ideas apppreciated.
    http://rawarrior.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • that is an empty extra div .navigation:

    <div class="navigation">
    		<div class="alignleft"></div>
    		<div class="alignright"></div>
    	</div>

    there will be some php code with it.
    that is the one in comments.php – delete it there.
    and actually there is another one in comments.php – delete that as well. (it shows as the high empty space before ‘what do you think’.)

    ps: you could post page.php or whatever creates the pages – to get a separation before the comments, you probably need to close a div, and re-open another – depending on the html layout.

    Thread Starter rawarrior

    (@rawarrior)

    Thank you for taking the time to look at my code! That took care of one of them right away!

    There is one more extra space right above the first comment. I can’t find where to eliminate. Any ideas appreciated.

    I want to keep the break above “What do you think?” However, I want to eliminate the one at the bottom under the smilies.

    I’d like to add one to pages between content and comments, but I’ve tried adding div’s in several places. Here is the page.php.

    <?php get_header(); ?>
    
    	<!-- start content -->
    	<div id="content">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h1 class="title"><?php the_title(); ?></h1>
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    
                           <p> <?php if(function_exists('wp_email')) { email_link(); } ?> </p>          
    
                                     <?php
                               if( function_exists( 'pjlCopyrightGet' ) )
                                echo pjlCopyrightGet();
    ?>
    
                                   <div>    <?php comments_template(); ?>  </div>
                      <?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>'); ?>
    	</div>
    	<!-- end content -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove extra gaps in background’ is closed to new replies.