WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't get rid of this white space! (6 posts)

  1. chocolateshavings
    Member
    Posted 6 years ago #

    Hi everyone.

    I have a white space between the title of the first entry and the bottom of the header that has been driving me crazy lately. I've tried, through trial and error, editing every 'margin' and 'padding' style in my style.css file, to no avail.

    This is the site: http://www.chocolateshavings.ca

    What should I do?!?

  2. fitztrev
    Member
    Posted 6 years ago #

    You can delete the rollingarchives div from single.php of your theme.

  3. chocolateshavings
    Member
    Posted 6 years ago #

    Hi fitzrev, thanks for the quick response!

    I looked in the single.php and there was no rollingarchives div... am I looking in the wrong place?

    Here is the whole single.php file:

    <?php get_header(); ?>
    
    <div class="content">
    
    	<div id="primary">
    		<div id="current-content" class="hfeed">
    
    			<?php include (TEMPLATEPATH . '/theloop.php'); ?>
    			<?php comments_template(); ?>
    
    		</div> <!-- #current-content -->
    
    		<div id="dynamic-content"></div>
    	</div> <!-- #primary -->
    
    	<?php get_sidebar(); ?>
    
    </div> <!-- .content -->
    
    <?php get_footer(); ?>
  4. fitztrev
    Member
    Posted 6 years ago #

    I'm sorry... it's not single.php. It must be one of the other ones (probably index.php or header.php).

    If you check the source code for your homepage, you'll see:

    <div id="rollingarchives" style="visibility: hidden;">....a bunch of other code....</div> <!-- #rollingarchives -->

    If you can find the source of that and get rid of it, your problem will disappear.

  5. chocolateshavings
    Member
    Posted 6 years ago #

    Hi Fitzrev... problem solved!

    But may I ask.... have I lost anything by deleting that? What exactly are rolling archings anyways?

  6. shylaz
    Member
    Posted 5 years ago #

    Hi Fitzrev!
    I have the same problem, but I don't find any code related to rollingarchives in any of my theme files.

    My index.php:

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    				<small><?php the_time(__('Y. F d. l', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '<br />'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick')); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')) ?></div>
    			<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')) ?></div>
    		</div>
    
    	<?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>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    And my header.php:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php bloginfo('name');
    if ( is_single() ) {
    	_e('&raquo; Blog Archive', 'kubrick');
    }
    wp_title(); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <style type="text/css" media="screen">
    
    <?php
    // Checks to see whether it needs a sidebar or not
    if (!empty($withcomments) && !is_single() ) {
    ?>
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    <?php } ?>
    
    </style>
    
    <?php wp_head(); ?>
    </head>
    <body>
    <div id="page">
    
    <div id="header">
    	<div id="headerimg">
    		<h1></h1>
    		<div class="description"></div>
    	</div>
    </div>
    <hr />

Topic Closed

This topic has been closed to new replies.

About this Topic