Support » Themes and Templates » Blend theme dates in posts

  • I have been using the Blend theme for awhile and really like it. What is a continuing aggravation is the dates in the posts. There is a box to check to remove but it never stays checked. The date mysteriously shows up and I have to go back and check the box. I have done this with almost every post.

    How do I get the date removed permenately from the theme?

Viewing 2 replies - 1 through 2 (of 2 total)
  • the easy, cheap and fast way is to use css to hide the post-date div.

    .post-date { display:none!important; }

    Of course the better way in my opinion would be to edit the actual theme file and just remove or comment out the html that outputs the date.

    In the case of your blend theme it is located in the file named thecontent.php, lines 27 – 33. looks like this.

    if(get_post_meta($post->ID,"hide-date",true) != 1) {?>
    		<div class="post-date">
    			<span class="post-month"><?php the_time("M");?></span>
    			<span class="post-day"><?php the_time("d");?></span>
    			<span class="post-year"><?php the_time("Y");?></span>

    You can just remove this or comment it out.

    big fat warning about following child-theme best practices and that if your theme author ever updates the theme (and you update it on your site), your changes could get lost.

    thank you for the information and warning

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blend theme dates in posts’ is closed to new replies.