WordPress.org

Ready to get started?Download WordPress

Forums

Blend theme dates in posts (3 posts)

  1. lil j
    Member
    Posted 2 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?
    thanks

  2. rfair404
    Member
    Posted 2 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>
    		</div><?php
    		}

    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
    Member
    Posted 2 years ago #

    thank you for the information and warning

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.