BlogHarbor Home Page
FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  UsergroupsRSS   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
postDate on CSS sheet
 
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
kerry
Guest





PostPosted: Mon Aug 07, 2006 6:33 pm    Post subject: postDate on CSS sheet Reply with quote

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

PostPosted: Mon Aug 07, 2006 9:20 pm    Post subject: Re: postDate on CSS sheet Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
kerry
Guest





PostPosted: Mon Aug 07, 2006 11:04 pm    Post subject: CSS Manual Reply with quote

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

PostPosted: Tue Aug 08, 2006 8:19 am    Post subject: Re: CSS Manual Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
kerry
Guest





PostPosted: Thu Aug 10, 2006 3:15 pm    Post subject: Disappearing date Reply with quote

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

PostPosted: Thu Aug 10, 2006 3:17 pm    Post subject: Re: Disappearing date Reply with quote

Bug on our side due to a minor update this afternoon, we'll resolve it asap.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
john
Site Admin


Joined: 16 Mar 2004
Posts: 3434

PostPosted: Thu Aug 10, 2006 5:53 pm    Post subject: Re: Disappearing date Reply with quote

Fixed...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kerry
Guest





PostPosted: Mon Aug 14, 2006 12:00 am    Post subject: Who you calling semi-verbose? Reply with quote

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

PostPosted: Tue Aug 15, 2006 1:14 pm    Post subject: Re: Who you calling semi-verbose? Reply with quote

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. Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Search all BlogHarbor support resources.
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    BlogHarbor Community Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum