Blend theme dates in posts (3 posts)

  1. lil j
    Posted 4 years ago #

    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?

  2. rfair404
    Posted 4 years ago #

    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.

  3. lil j
    Posted 4 years ago #

    thank you for the information and warning

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.