Support » Plugin: WP Old Post Date Remover » Removing dates on my blog home page for all posts

  • Resolved luluflamingo


    Hi Ben –
    Thanks for your latest post (re-post)re: that your plugin only works for the individual posts and not for the homepage/archive. I’m a newbie, so sorry for the confusion. I’d like to avoid all dates for the posts and homepage, if possible. Are there themes that allow this or is there some CSS I can add? I really like Hemingway. Thanks for your plug-in too — very nice.
    My blog page:

Viewing 1 replies (of 1 total)
  • Plugin Author Ben Meredith


    Hi there,

    I just took a quick look at the Hemingway theme, and it looks like the date is added in that theme in the content.php file, which is used by both single pages and index.php, which is the way that theme displays the blog home page.

    (I am not able to help further with this process, but this should get you started.)

    So, in order to remove it from the home page, you’ll need to:

    1. Create a child theme
    2. Copy content.php into your new child theme.
    3. Either remove lines 33-35 of that file, or add some conditional logic around them:

    <?php if ( !is_home() ){ ?>
    		<span class="post-date"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_time(get_option('date_format')); ?></a></span>
    		<span class="date-sep"> / </span>
    		<?php }	?>

    That will remove the date from just the blog home page.


Viewing 1 replies (of 1 total)
  • The topic ‘Removing dates on my blog home page for all posts’ is closed to new replies.