View previous topic :: View next topic |
Author |
Message |
kerry Guest
|
Posted: Mon Aug 07, 2006 6:33 pm Post subject: postDate on CSS sheet |
|
|
Hello John,
TWO questions about the postDate div in the CSS sheet:
eg. from my category "PORTFOLIO" using the Blogware color/style -
.postDate {
font-size: 10px;
font-weight: bold;
margin: 0 0 14px 0;
background-color: transparent;
padding: 0;
color: #990000;
white-space: nowrap;
text-transform: uppercase;
}
Q1: is it possible to make the YEAR show as well as the day and the month?e.g. instead of Monday, July 31
show Monday, July 31, 2006
Q2: Is it possible to get rid of the date altogether?
Many thanks |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Mon Aug 07, 2006 9:20 pm Post subject: Re: postDate on CSS sheet |
|
|
Quote: | Q1: is it possible to make the YEAR show as well as the day and the month?e.g. instead of Monday, July 31 show Monday, July 31, 2006 |
Yes, it is possible. Remember that CSS controls the presentation of data, the remainder of the templates control the structure of that information.
So to change the way the postDate area is actually generated, you would need to edit your Category template (steps are listed here); look for this code:
Code: | <div class="postDate">{{date.day_name}}, {{date.month_name}} {{date.day}}</div> |
Change it to this:
Code: | <div class="postDate">{{date.day_name}}, {{date.month_name}} {{date.day}}, {{date.year}}</div> |
The available variables are listed here.
Quote: | Q2: Is it possible to get rid of the date altogether? |
Yes, one way would be to remove the content above from your category template. Another way would be to simply add this to your Custom CSS in your style template:
Code: | .postDate {
display: none;
} |
which would cause the postDate class not to be displayed by the browser at all. |
|
Back to top |
|
|
kerry Guest
|
Posted: Mon Aug 07, 2006 11:04 pm Post subject: CSS Manual |
|
|
Hi John,
Many thanks. Easy peasy - now that it's all blindingly obvious!
While on the topic of CSS sheets, have you considered publishing a little manual that explains what each element on a blogger's chosen Style actually refers to? This would be in plain English and Stylesheet-specific, building on the generalisations of the W3 site, and ranging from the simple features such as - eg "#123456 on your Purple CSS sheet is the greenish-brackenish color of the footer dotted line" etc - that sort of thing. Why? Because I've been working with Whiteout for 16 months, and it's anything but whiteout - you say "Punch it up with your own colors" etc on the head of the CSS sheet, but it's full of colors and all sorts of other specifics!
Just a thought.
Much appreciated, as always. |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Tue Aug 08, 2006 8:19 am Post subject: Re: CSS Manual |
|
|
I don't think we'll ever be able to publish style-sheet specific guides to the CSS, but we do have a Style Template CSS Reference which should provide a pretty thorough review of the CSS classes and their function. |
|
Back to top |
|
|
kerry Guest
|
Posted: Thu Aug 10, 2006 3:15 pm Post subject: Disappearing date |
|
|
Hello John,
The day, date and YEAR customisation you suggested above lasted only a few days, and it was fine, showing - eg
Wednesday, August 9th, 2006.
It then disappeared overnight, leaving only
space comma space comma 2006
And then, on the Main Page category template, the customisation you suggested disappeared altogether, and in its place (magically appeared)
this replacement:
{{loop days}}
<div class="dayArticles">
<div class="postDate">{{semi.verbose.date}}</div>
So, back to square one, because the YEAR is no longer showing.
Presume you have tweaked this "semi-verbose" bit (?) |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Thu Aug 10, 2006 3:17 pm Post subject: Re: Disappearing date |
|
|
Bug on our side due to a minor update this afternoon, we'll resolve it asap. |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Thu Aug 10, 2006 5:53 pm Post subject: Re: Disappearing date |
|
|
Fixed... |
|
Back to top |
|
|
kerry Guest
|
Posted: Mon Aug 14, 2006 12:00 am Post subject: Who you calling semi-verbose? |
|
|
Hello John,
Presume therefore that "fixed" means the end of customising the date to include the year in the Article posts as per your previous suggestions?
This code which appeared in the main page category template last Thursday is still there - should it be? - and the older code and my customisations have disappeared -
{{loop days}}
<div class="dayArticles">
<div class="postDate">{{semi.verbose.date}}</div>
Will it revert? Does 'semi-verbose' simply mean a customisation is present? etc etc
Much appreciated |
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Tue Aug 15, 2006 1:14 pm Post subject: Re: Who you calling semi-verbose? |
|
|
Presume therefore that "fixed" means the end of customising the date to include the year in the Article posts as per your previous suggestions?
No, that's not what I meant. I meant the issue with only the comma appearing was fixed.
Will it revert? Does 'semi-verbose' simply mean a customisation is present? etc etc
In the default template we swapped out a set of long variables ({{date.day_name}}, {{date.month_name}} {{date.day}}) for a short one ({{semi.verbose.date}}) for localization purposes, it makes it possible to show a different date format depending on the language preference.
I don't know why or how your customizations were replaced with new variables, I haven't seen that on any other blogs. You can still replace that variable with the code we noted earlier in the thread:
Code: | {{date.day_name}}, {{date.month_name}} {{date.day}}, {{date.year}} |
to get the format you were looking for.
Who you calling semi-verbose?
Just noticed your title. |
|
Back to top |
|
|
Search all BlogHarbor support resources.
|
View previous topic :: View next topic |
|