Showing posts with label Blogger SOS. Show all posts
Showing posts with label Blogger SOS. Show all posts

Tuesday, June 22, 2010

Post Date Customization - Blogger SOS - Part II

Share
I was very pleased with the response about my new blog layout.  I'm totally in love with it and I should tell you that I've worked on the layout for a while now.

Some days, I browse for hours, until inspiration strikes.  And it's not easy since I LOVE colors.  If I could integrate each and every color in my blog template, believe me, I would.  But anyway, remember (readers who've been reading since the beginning of The Mercurial Wife) the post Blogger SOS - Part I?  I know I said I would help anyone with template customization.  Again, I'm not really good at it but I try.

And today, I decided I would share one of the tricks I've used on this layout - the date header.  Have you noticed that it's not displayed the traditional way?  For months, I've been searching for the code and finally, I got it.  Before you try this hack, please do a back-up of your Blogger template (Click on Download Full Template)

1.  Log in on Blogger.
2.  Click on Design.
3.  Press Ctrl+f and search for
    ]]></b:skin> 
4.  Just above it, paste the following CSS code
.post-month { 
     background:#eee;
     float:left;
     font-size:15px;
     font-family:Verdana, Arial, Helvetica, sans-serif;
     text-align: center;
     width: 80px;
     height: 63px;
     color:#000;
     padding-top:5px;
     padding-bottom:0px;
     text-transform:uppercase;
     margin:-6px 7px 0 -10px;
}

.post-date {
    font-size:14px;
    font-weight:bold;
    text-align: center;
    color:#222;
}

.post-year{
    font-size:12px;
    font-weight:bold;
    text-align: center;
    color:#f0efeb;
}

5. Click on Save
6. Click on Expand Widget templates.
7. Ctrl+F and search for
<div class='post hentry'>
8. Paste the following just below it
<!-- calendar script-->
<div class='post-content'>
<div class='post-month'>
<script type='text/javascript'>
       var timestamp = &quot;<data:post.dateHeader/>&quot;;
       if (timestamp != &#39;&#39;) {
               var timesplit = timestamp.split(&quot;,&quot;);
               var date_yyyy = timesplit[2];
               var timesplit = timesplit[1].split(&quot; &quot;);
               var date_dd = timesplit[2];
               var date_mmm = timesplit[1].substring(0, 3);
       }
</script>
<script type='text/javascript'>document.write(date_mmm);</script>                <div class='post-date'><script type='text/javascript'>document.write(date_dd);</script></div>
<div class='post-year'><script type='text/javascript'>document.write(date_yyyy);</script>
</div>
</div></div>
<!-- end of cal script--> 

9. Save.
10. Ctrl+f and search for
<h2 class='date-header'><span><data:post.dateHeader/></span></h2>
11.  Replace with
<!--<h2 class='date-header'><span><data:post.dateHeader/></span></h2>-->
12.  Save.
13.  Go to date settings and select the third option - Monday, June 21, 2010.
14. Save and voila!

 You can edit the CSS section (see in red) to your heart's content! Any problems, let me know. ;p

Enjoy!

Monday, March 8, 2010

I'm Brain Dead...

Share
I'm still sick. Looks like it's getting worse.  

My sense of humor, as well as my brain, is on lock-down.  

I'm thinking of doing a second installment of the Blogger SOS series later.

If you have any HTML-related queries drop me a line in the comment box below.  

I reiterate: I'm not an HTML/CSS expert but I'm willing to help those who need it.  You don't have to pay me.  It's free. Remember I'm trying to purge my sins and that's my way of sucking up to the Big Guy.  

So yes, go ahead and hit me with your questions.  

And a big hello to my new followers.  Welcome to my blog.  I'm sick.  Have you got any homemade cures to get rid of phlegms?  Please share if you do have.  I hate taking pills or syrup.  Thank you.

My old followers, pitch in too and share whatever remedies you're aware of.  

I'm going to have a cup of bush (herbal) tea.

Enjoy your week!

Friday, March 5, 2010

Blogger SOS - Part I

Share
Earlier, after posting about my poor health, I remembered someone once telling me how Cognac is good to fight off an imminent influenza.  Since I don't have any Cognac at home but Hennessy and Vodka, I settled on the latter.  Laced with Cranberry juice and with a small inaudible prayer, I bravely took a sip.  

I can't say it worked.  Maybe because I smoked twice after.  Or maybe it'll work tomorrow, after a good night's sleep.  

Honey Lips left a while ago on a duty call.  So I'm all alone.  

I started reading some blogs and for some reason, today I've come across a few bloggers who are clueless about HTML and/or CSS coding.  While HTML is not that hard, I know it can get pretty confusing sometimes; especially to those who aren't familiar with back-end coding.  Now I'm not an expert.  In 2003, I learned HTML (basic) for my degree and as soon as I finished my course I completely forgot about anything I picked up then.

And when I started blogging, I realized that, to give my blog a personal polish, I need to re-educate myself on HTML.  That's where Google came in handy.  I Google-d my way through and started digging for HTML/CSS online tutorials.  There are loads of HTML/CSS goodies out there and my generous heart reckoned that to score more points with God, I need to share my knowledge.  So I decided to put down lists of sites where you can find your way through to improve your blog and give it that personal look you so crave.  It'll be more like a series.  

So here goes the first instalment:

Free Blogger Templates (No need to right-hand click.  Just Click!)