Two Questions: How do you remove the “older entries” at the top…
-
Hello!
I have two questions:
URL: brandisutherlin.com/blog1.) how do you remove the “Older Entries” written at the top of my blog
2.) Is there a way to make the center column (where the posts are written) at least 500pixels wide in my blog?
-
You want it removed at the top, but to remain at the bottom. Am I understanding you correctly?
If so, you will need to edit the template.
Looking at the source code for your blog, I found two instances of this code:<div class="navigation"> <div class="alignleft"><a href="https://brandisutherlin.com/blog/?paged=2" >« Older Entries</a></div> <div class="alignright"></div> </div>
One just before your latest post, and one just after your earliest. Remove the first instance of this code and you should be good to go. It will be gone at the top and yet still visible at the bottom. You will probably need to look in the index.php file of your theme. If this info isn’t helping much, go ahead and post the code for your index.php file and we’ll take a look.
as for the second question, you are going to have to add some styles. At a glance, I would say add a width of 500px to <div class=”Post”>.
.Post {width: 500px;}
That may not be the tag that you need to target, give it a shot and let us know.
i’m not finding that code that you posted above… i copied and pasted it and did a control f when my editor was up on both the index.php file and the style.css file. i did remove this:
<?php $prev_link = get_previous_posts_link(__(‘Newer Entries »’, ‘kubrick’));
$next_link = get_next_posts_link(__(‘« Older Entries’, ‘kubrick’));
?>and it ended up removing both “older entries” on the top of my blog and the bottom of my blog. I want to keep the one on the bottom. ??
as for the code above, can you point exactly where i add this code for the column to be 500 pixels?
look for this code
<div class="navigation"> <div class="alignleft">
to find the area where ‘older entries’ appears. probably in index.php, archive.php, and some more. you just have to search all php files of your theme.
as for your second question, you better post the link to your site to get help.ok, well once i find that what exactly do i do? i need specifics ?? thank you!
Hey,
Would you post the entire index.php page? I will probably need to see it to help. It looks like you found the right code in your file to remove, so I’ll need to see why it removed both the top and the bottom. Oh and can you put the code that you removed back in?I’m not sure which one I removed and where it was… sorry.
Here is what it looks like:
<?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 »’, ‘kubrick’));
$next_link = get_next_posts_link(__(‘« 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”>
<h2 class=”PostHeaderIcon-wrapper”>
<span class=”PostHeader”>” rel=”bookmark” title=”<?php printf(__(‘Permanent Link to %s’, ‘kubrick’), the_title_attribute(‘echo=0’)); ?>”>
<?php the_title(); ?>
</span>
</h2>
<?php ob_start(); ?>
<?php $icons = array(); ?>
<?php if (!is_page()) : ?>
<?php ob_start(); ?>
<img src=”<?php bloginfo(‘template_url’); ?>/images/PostDateIcon.png” width=”17″ height=”18″ alt=”PostDateIcon” />
<?php the_time(__(‘F jS, Y’, ‘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; ?>
<?php $metadataContent = ob_get_clean(); ?>
<?php if (trim($metadataContent) != ”): ?>
<div class=”PostMetadataHeader”>
<?php echo $metadataContent; ?></div>
<?php endif; ?>
<div class=”PostContent”>
<?php if (is_search()) the_excerpt(); else the_content(__(‘Read the rest of this entry »’, ‘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=”18″ height=”18″ 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(); ?>
<img src=”<?php bloginfo(‘template_url’); ?>/images/PostCommentsIcon.png” width=”18″ height=”18″ alt=”PostCommentsIcon” />
<?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(); ?>
Maybe the following video will help you a bit…
- The topic ‘Two Questions: How do you remove the “older entries” at the top…’ is closed to new replies.