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

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

    (@benmeredithgmailcom)

    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 https://codex.wordpress.org/Child_Themes
    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.

    Thanks!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.