Too much white space after removing previous/next link at top of single posts
-
Hi,
I came on to this forum to see about removing the previous/next link at the top of each post. I was told to remove the following code:
<div class=”page-navigation”>
<div class=”alignleft”>
<?php previous_post(‘%’,’Previous article’, ‘no’); ?>
</div>
<div class=”alignright”>
<?php next_post(‘%’,’Next article’, ‘no’); ?>
</div>
</div>I did that and it and it worked, but now I still have a large white space left at the top. The code below is what remains. Any suggestions on what is creating the white space and whether it can be removed?
<?php get_header(); ?>
<div class=”art-content-layout”>
<div class=”art-content-layout-row”>
<?php include (TEMPLATEPATH . ‘/sidebar1.php’); ?><div class=”art-layout-cell art-content”><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
$prev_link = get_previous_post_link(‘« %link’);
$next_link = get_next_post_link(‘%link »’);
?>
<?php if ($prev_link || $next_link): ?>
<div class=”art-post”>
<div class=”art-post-body”>
<div class=”art-post-inner art-article”><div class=”art-postcontent”>
<!– article-content –></div>
<div class=”cleared”></div></div>
<div class=”cleared”></div>
</div>
</div><?php endif; ?>
<div class=”art-post”>
<div class=”art-post-body”>
<div class=”art-post-inner art-article”>
<h2 class=”art-postheader”>
” rel=”bookmark” title=”<?php printf(__(‘Permanent Link to %s’, ‘kubrick’), the_title_attribute(‘echo=0’)); ?>”>
<?php the_title(); ?>
</h2>
<div class=”art-postcontent”>
<!– article-content –><?php if (is_search()) the_excerpt(); else the_content(__(‘Read the rest of this entry »’, ‘kubrick’)); ?>
<?php if (is_page() or is_single()) wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?><!– /article-content –>
</div>
<div class=”cleared”></div></div>
<div class=”cleared”></div>
</div>
</div><?php comments_template(); ?>
<?php endwhile; ?>
<?php else: ?>
<h2 class=”center”><?php _e(‘Sorry, no posts matched your criteria.’, ‘kubrick’); ?></h2>
<?php endif; ?></div>
</div>
</div>
<div class=”cleared”></div><?php get_footer(); ?>
- The topic ‘Too much white space after removing previous/next link at top of single posts’ is closed to new replies.