Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #712

    I’ve seen in other forum responses the edits required to suppress the date from a blog post, but not for the Display theme. Am hesitant on how to edit the templates and don’t want to break anything. Please advise if this is possible using Display.

    Thank you for your help!


    To remove the date from a blog post just delete following code in sinle.php:

    <div class="date">
    <span class='day'><?php the_time('d') ?></span>
    <span class='month'><?php the_time('M') ?></span>
    <span class='year'><?php the_time('Y') ?></span>
    </div><!-- end date -->

    This code is also used in the posts overview (blog page) (archive.php) if you also want to remove the dates there.

    The Dude



    this is my site

    The first page is the static page and it looks like a blog. I would like to remove the following date as you mentioned above.

    You stated it should be removed from the blog post and deleted it from the sinle.php??? Did you mean that single.php?

    where do I delete it from?

    I went into Dashboard

    click on the POST

    open the post and I don’t see any <div class…etc

    I might be in the wrong place. please help.


    ok. I found it. I went into APPEARANCE. I went into EDITOR and selected the SINGLE.PHP.

    This is what I found and this is what I removed. Now, would this remove the dates from ALL OF THE blogs and postings?

    <div class=”date_container”>

    <span class=’day’><?php the_time(‘d’) ?></span>

    <span class=’month’><?php the_time(‘M’) ?></span>

    <span class=’year’><?php the_time(‘Y’) ?></span>



    Your code would remove the date from the single pages (i.e. the individual post). Ideally you shouldn’t make changes through WordPress’ editor – instead use a text editor on your computer and use FTP to upload the file.

    Also, make sure you remove the closing div tag under the code you posted, you’ll end up with layout issues otherwise as the code won’t be valid.



    oops! Well, I removed the DIV and it still doesn’t work.

    Is there another way to remove the dates from the HOME OR LANDINGPAGE?


    I am using a Mac and I don’t know much about FTP.

    So are you saying that I should have copied the single.php in notepad, make the changes, and upload it back to???

    I am sorry. There is no way I could do that on a mac. I need to use a Windows computer.



    I also use a Mac, there is no problem uploading files using an FTP application such as Transmit or Coda.

    There’s no reason why you couldn’t use a similar program on a Windows computer, though I can’t advise you on which ones are any good.


Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Suppress the Date?’ is closed to new replies.