Adding year to date stamp posts (Linen)
-
I noticed that the date stamp next to the preview of my posts does not include the year, which is confusing if you are searching for something in the blog. How would I add the year to this?
Here is the blog: http://www.thedailykibitzer.com
The blog I need help with is: (visible only to logged in users)
-
In some themes, you can control how a date appears in the site by editing the date formats at Settings > General, but I tested and Linen doesn’t seem to pick up the date format from there, and there isn’t anything in the CSS or the HTML except for the month and day (Oct 10). Sometimes things are there, but hidden, but not in this case.
This would require modification of the underlying theme PHP script files, and those cannot be edited.
You may want to take a look and see if there is another theme that looks similar, with similar features, if showing the year on the posts is important enough. There is the archive widget where people can select dates, and the full dates do show on the single post pages, and also in the URL for each single post.
-
As an alternative, you can add the date into the post content area, and then hide it will CSS on the single post pages so there would not be a duplicate date on those pages, and then hide the existing dates in the black area. You would do something like the following:
Date code for inclusion at very top of each post:
<div class="my-date">Oct 10, 2013</div>This CSS would hide the above date from the single post pages:
.single .my-date { display: none; }This would hide the existing date on the main blog pages and recover the space vacated by the existing blog date:
.blog .post-date-box { display: none; } .blog .entry { margin-left: 10px; }
- The topic ‘Adding year to date stamp posts (Linen)’ is closed to new replies.