August 14, 2010 at 1:02 am #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!August 14, 2010 at 1:09 pm #32615
To remove the date from a blog post just delete following code in sinle.php:
<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 DudeApril 18, 2011 at 4:34 pm #32616
this is my site http://www.pictureme2.com
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.April 18, 2011 at 4:46 pm #32617
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?
<span class=’day’><?php the_time(‘d’) ?></span>
<span class=’month’><?php the_time(‘M’) ?></span>
<span class=’year’><?php the_time(‘Y’) ?></span>April 19, 2011 at 10:04 am #32618
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.
JamesApril 21, 2011 at 1:39 am #32619
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?April 21, 2011 at 1:41 am #32620
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.April 21, 2011 at 3:46 pm #32621
The topic ‘Suppress the Date?’ is closed to new replies.