Saturday, 12 January 2008

Using a Calendar Icon as the Post Date Header


But since we're on the subject of the date header. Have you been able to figure out (or maybe seen somewhere) how people add the caledar icon next to the date header?

It's usually a graphic behind the month and date to the left of the date header. Like:
JAN
---
10


WOW, this was not an easy task. At least for me. Sometimes it is just an uphill struggle. But, I stuck with it and won.

Of course, I found help from two places: Orangevolt for the calendar code and Euphorish for the icons, which I resized to fit this code. Many thanks to them for all their work. You can read about it on their site, or follow the instructions that I've simplified below.

So, let's get started.
  1. Open the Dashboard | Settings | Formatting
  2. Locate the Date Header Format and set it to YYYY-MM-DD (2008-01-12)
  3. Save settings.
That gives the correct date format to work with this script. Let's continue.
  1. Open the Dashboard | Template | Edit HTML.
  2. Check the Expand Widgets Template box.
  3. Find the <head> tag and paste the following code under it:

    <!-- orangevolt calendar widget -->
    <script src='http://anniebluesky.googlepages.com/fastinit.js'/>
    <script src='http://anniebluesky.googlepages.com/prototype-1.5.0.js'/>
    <script src='http://anniebluesky.googlepages.com/orangevolt-calendar.js'/>
    <link href='http://anniebluesky.googlepages.com/calendar.css' rel='stylesheet' type='text/css'/>
    <!-- end calendar widget -->
So far so good!

Next you will locate this code in your template: <data:post.dateHeader/> and replace it with:
<h2 class='date-header'>
<data:post.dateHeader/>
</h2>
This is pretty painless, isn't it. Last step. This is where you can customize the font used, color of font, float the icon to the left or right, and where you add your calendar image. In the CSS Style Sheet, add this code:
/* Calendar
----------------------------------------------- */
span.cal {
background:transparent url('CALENDAR IMAGE. URL') no-repeat scroll 0%;
float:left;
height:49px;
width:48px;
font-family:"Trebuchet MS",Tahoma,Arial;
font-size-adjust:none;
font-style:normal;
font-variant:normal;
font-weight:normal;
margin-right: 13px;
}

span.cal_month {
color:#FFFFFF;
display:block;
font-size:11px;
line-height:11px;
margin-left:-3px;
padding-top:2px;
text-align:center;
text-transform:uppercase;
}

span.cal_day {
color:#999999;
display:block;
font-size:18px;
line-height:18px;
margin-left:-3px;
padding-top:8px;
text-align:center;
text-transform:uppercase;
}
If you have a calendar icon upload it to your webhost (I use Ripway). Put your Calendar Image.URL in the above code. Or, download this set of icons and take your pick. It looks like candy!! This set of calendar icons will make your blog POP!


Download


post signature

Friday, 11 January 2008

Choices for Post Body Fonts


...For example:

I've been trying to add the Gothic Century (?) font to a blog template with little luck. I'd like the Sidebar title to be that Gothic font and the sidebar body to be Trebuchet. And say the post title font to be Gothic as well but with the Verdana font of the post body.

Further more I'd like to be able to have the sidebar body font at say a 10pt and the post body font at a 15pt, just as an example.


This was but one of the questions from Mr. Brown Thumb, my gardening friend in Chicago. As it turns out, while I was busy working on another project, another friend, Hans, came up with an easy solution. I must be living right!

I'll put Hans' solution here. He states that you can define an extra bodyfont-class in your CSS style sheet, for example:
.extrabodyfont {
font: Arial;
font-size: 1.2em;
color: #800080;}
Now, when you want a to use this font in a post, wrap the text inside span tags like this:
<span class="extrabodyfont">your text here</span>
This little piece of code has the added benefit of allowing you to change the size and color of the font also!

Another added bonus. If you are really fickle and want even more extrabody font choices, start labeling the classes .extrabodyfont1, .extrabodyfont2 etc. Then make changes to the class:
.extrabodyfont1{
font: Georgia;
font-size: 1.2em;
color: #800080;}
Then when posting,make sure to choose the corresponding span class.
<span class="extrabodyfont1">your text here</span>
The possibilities are endless!!

post signature

Sunday, 6 January 2008

Change the Date Header Font Easily


If I do it through the blogger feature it doesn't really work. The sidebar title is a large font like I want, but look how date/time enlarges with it.

The other thing I've been trying to figure out is how to have 2 different body fonts with different title fonts.

MrBrownThumb, I have an answer for the first question, but the next one will have to wait. I have a bowl of ice-cream with my name on it! I have priorities, after all.

Open your Dashboard | Template | Edit HTML. Place this code in the /*Variable definitions area.
<Variable name="dateheaderfont" description="Date Header Font" type="font" default="normal normal 78% 'Trebuchet MS', Trebuchet, Arial, Verdana, Sans-serif" value="normal normal 78% 'Trebuchet MS', Trebuchet, Arial, Verdana, Sans-serif"></variable>
Now in the CSS style sheet, find this code:
h2.date-header {
margin:1.5em 0 .5em;
}
Add this font: $dateheaderfont; to make it look something like this (depending on your blog template):
h2.date-header {
margin:1.5em 0 .5em;
font: $dateheaderfont;
}
When you open the Fonts and Colors tab, you will see in the scroll box the Date Header Font. This will change the font, size and color of the date header only.

Next time I will address your other question if I can figure it out. And I will put up a little Sidebar Title Font tutorial also.

post signature

Blogger xml Template - Snow Below

Snow Below Template
Click on image for working demo
Download
A note to those of you that put my templates up for download. I appreciate that you like them enough to do so, but please link back to my post and don't put my template for download from your site. I enjoy the traffic!

A free blogger xml template! Featuring:
  1. Hide/Show labels
  2. Hide/Show links
  3. Styled blockquotes
  4. Custom favicon
  5. Post, sidebar and footer section


And remember...


Need help? It is just a click away!


post signature

Sunday, 30 December 2007

Change the Post Title Font Easily


Hi Annie,

A possible tip for you:

To change my post title font I added a new variable called
posttitlefont at the top of my code. Then I modified the h3 section in
the Post wrapper in the CSS section. To my surprise Post Title Font
now shows up as an option under the fonts and colors tab in the
dashboard!

You can check it out at my blog, Upper Fort Stewart.

Ian Stewart


I received this tip from Ian almost a year ago. Life has a way of putting things on the back burner. This is a neat little edit for a blog post. Here is how it is done.

Open your Dashboard | Template | Edit HTML. Look for the /* Variable definitions section. Add this code to that section:
<Variable name="posttitlefont" description="Post Title Font" type="font" default="normal normal 78% 'Trebuchet MS', Trebuchet, Arial, Verdana, Sans-serif"></variable>
Next find the post header code in the CSS style sheet:
.post h3 {
margin:.25em 0 0;
padding:0 0 4px;
font-size:140%;
font-weight:normal;
line-height:1.4em;
color:$titlecolor;
}
Modify that code by replacing:
font-size:140%;
font-weight:normal;

with this:
font: $posttitlefont;

to make this code:
.post h3 {
margin:.25em 0 0;
padding:0 0 4px;
font: $posttitlefont;
line-height:1.4em;
color:$titlecolor;
}
Save your template. Once again go back to your Dashboard | Template | Fonts and Colors. There will be a new listing in the scroll box called Post Title Font. Now changes can be made to the post title with only a click!

post signature

Saturday, 15 December 2007

The Scoop on OpenID and Blogger Comments

I have been looking into OpenId and it's connection with Blogger. I went straight to the source, thanks to Janeywan for sending me the link to OpenID Commenting on Blogger Buzz.

If you haven't set up OpenID, you can still link to your blog — or any webpage, for that matter — by using the standard tag inside the comment form.

From Blogger Buzz
First, what does OpenID do? It allows you to take your identity with you, proving that you own a particular URL. Isn't that simple? Yes. And a big surprise is that you may already have an OpenID. If not, don't fret. There are several options to get one:
  1. myOpenID which is what I used.
  2. claimID
  3. myvidoop
  4. myID.net
  5. VeriSign Labs
What does it mean to you, a blog owner? It means that readers can leave authenticated comments on your blog using their blog URLs from OpenID-enabled services such as WordPress.com, LiveJournal, and AOL Journals, or with their AOL/AIM accounts. When they leave a comment with an OpenID , you will see this icon OpenID icon next to their names. No more comment spoofing.

To enable this on your blog, go to your Dashboard | Settings | Comments | Who can Comment | check Anyone or Registered Users.

This is from myOpenID on using your own URL:

You can use your own URL as your OpenID, and still use myOpenID as your OpenID server. To set this up, create an account, and add the following markup into your page's <head<> section:
<link rel="openid.server"
href="http://www.myopenid.com/server" />
<link rel="openid.delegate"
href="http://youraccount.myopenid.com/" />
<link rel="openid2.local_id"
href="http://youraccount.myopenid.com" />
<link rel="openid2.provider"
href="http://www.myopenid.com/server" />
<meta http-equiv="X-XRDS-Location"
content="http://www.myopenid.com/xrds?username=youraccount.myopenid.com" />
Or another method...which I decided to use:
<link href='http://www.myopenid.com/server' rel='openid.server'/> <!-- For delegating OpenID v1.x-->
<link href='http://youraccount.myopenid.com' rel='openid.delegate'/> <!-- For delegating OpenID v1.x-->
<meta content='http://youraccount.myopenid.com/xrds' http-equiv='X-XRDS-Location'/> <!-- For delegating OpenID v2.x-->;
In both examples put your OpenID username where it says your account.

That's it. You can now use your own URL to log into OpenID enabled sites with myOpenID as your OpenID server.

Now, while I have your attention. Big Bad Blogger apologized for removing the URL field from the comments form prematurely. And they regreted making it appear that they were trying to force you into getting a Google Account. Don't you all feel bad for talking the way you did about them? Shame on you.

post signature

Friday, 14 December 2007

The Blogger openID debate

There seems to be a huge rumbling about Blogger these days. A revolution of sorts. I'm not jumping on that band wagon. It concerns comment links and openID.

Let me step out on a limb here and say that I didn't start blogging to become the most popular kid on the block. I started blogging because I felt I had something to share with others. Nor do I comment only to have a link back to my blog. I comment because I have something to say. Either to let the poster know that I appreciate a well written post, or I have something that could be of interest to that poster and their readers. I didn't choose a blogging platform for it's ability to allow links in it's comment section.

With that being said, I do think linking is important. But not for the reason you may think. I like following links and placing links for the information shared within that link.

I will do what I always do with Blogger. Find a way. Just to make it simple for my readers, I have put this in the Comment Form Message in the comment setting section of the dashboard. Now my readers may comment and leave a link to something of interest. Or, if they wish, they can leave a link to their blog. Either way, it is there and easy to use.

I'm playing around with some of the fixes I've found, but at this point I'm not entirely clear on what I'm fixing! It all seems to work fine.

I really don't see what the fuss is about. Blogger will get it together and we will live happily ever after in Blogger Land.

post signature