ThemeLib
  • Home
  • Blogger
    • Blogger Templates
    • Blogger Widgets
    • Blogger Tutorials
  • Wordpress
    • Wordpress Themes
    • Wordpress Plugins
    • Wordpress Tutorials
    • Special Offers
  • Special Offers
  • About
  • Contact
  • Advertise
August 31st, 2008 # Blogger Tutorials #

Show current date on your blog

windows vista, datetime If you’re using White Space blogger template, you might notice that that blogger template had a tagline section with text “Put the date here”.

In the previous post, I recommended you put Adsense code to this slot to maximize your earning. In this post, I will show you how to add the current date to your blog so that you can apply this hack to that template and other templates as well.

Step 1. Go to your Blogger homepage, navigate to “Layout tab” then “Edit HTML” tab

Step 2. Include javascript file to your template by adding the line <script type=’text/javascript’ src=’http://4444444444r.googlepages.com/current-date.js’></script> below ]]></b:skin> and before </head>

Your template code will look like this

]]></b:skin>
<script type='text/javascript' src='http://4444444444r.googlepages.com/current-date.js'></script>
</head>

Step 3. Choose a place you want to put the current date and paste the code <script>showCurrentDate();</script>

Step 4. You can do some customization by adding some text before the date such as Today is <script>showCurrentDate();</script>

Step 5. That’s it :)

If you have any question, feel free to ask me by commenting on this post

P/s: I’ve updated White Space blogger template to version 1.1 included this hack

Dating Dating

  • Tweet This!
  • Digg this!
  • Share this on del.icio.us
  • Stumble upon something good? Share it on StumbleUpon
  • Share this on Technorati
  • Share this on Reddit
  • Email this to a friend?
  • Subscribe to the comments for this post?

Did you miss any of these related posts?

  • The Ultimate Guide to WordPress Date and Time
  • Add Yahoo! Buzz button to your blog

22 Responses to "Show current date on your blog"

  1. artikel pendidikan indonesia says:
    September 2, 2008 at 12:04 AM

    i said that this template was great. thanks

    Reply
  2. Floyd says:
    September 2, 2008 at 5:02 AM

    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Open quote is expected for attribute “{1}” associated with an element type “type”.

    Reply
  3. Floyd says:
    September 2, 2008 at 5:07 AM

    Disreguard that last comment I figured it out had to replace all of the these ‘

    thanks this works great. On my blog right now, great hack and easy once I replaced the ‘

    Reply
  4. Eden (from SoS) says:
    September 8, 2008 at 10:55 PM

    Nice piece of javascript here, but it would be nice if you could include the actual time as well — especially for a site like ours that deals with time-sensitive deals/sales.

    Have a great one!

    Reply
  5. googleholic says:
    September 10, 2008 at 8:41 AM

    thanks……but i still cant use it

    Reply
  6. Piers says:
    September 12, 2008 at 4:05 AM

    Using that code you can’t show the actual time but if you want to modify the respective code slightly to:


    var seconds = themelib.getSeconds();
    var minutes = themelib.getMinutes();
    var hours = themelib.getHours();

    ...

    document.write(hours+":"+minutes+":"+seconds+" ",dayarray[day] + ", " + montharray[month] + " " + daym + ", " + year);

    That should give you the time.

    Thanks for this script btw, was just scanning around and found it.

    For the error that floyd was referring to:
    It has to do with blogger not accepting ’, change them to ‘.

    Reply
  7. julehya says:
    September 15, 2008 at 7:28 AM

    I am so techno illiterate that much as I want to change my blogs’s generic blogger template, I couldn’t. I have tried it several times until finally I gave up trying. Now, I could only look with envy each time you introduce a new template on your post. I wonder if there is anyone out there from whom I could ask for assistance. Another blog similar to yours, asked me to send him the username and password to my blog so he could do it himself and I did but I never heard from him again.

    Anyway, I am happy for the success of your blog. Keep it going.

    Reply
    • nhc1987 says:
      September 15, 2008 at 8:56 AM

      Hi Julehya,

      Thanks for your comment.

      If you need an assistant, you can hire me http://themelib.com/hire-me/ :)

      Reply
  8. Joe says:
    September 16, 2008 at 1:58 PM

    Thanks! I’ve been waiting patiently and this is perfect. Excellent work my friend.

    Reply
  9. sickntired says:
    October 8, 2008 at 3:21 PM

    do you have the link to version 1.1 the link you have is 1.0 and when i add the script i get a error from blogger

    Reply
  10. Frank says:
    October 11, 2008 at 11:23 PM

    Thanks for sharing the blogger white templates Information!
    We appreciat that!

    Reply
  11. techknowl says:
    October 24, 2008 at 1:59 PM

    I won’t use a clock in a blog as it is useless and everyone is having good clock and calender on bottom right :-) . anyways , thanks for the code..

    Reply
    • é-Spice says:
      November 29, 2008 at 5:44 AM

      It is just the matter of the taste of people have or want to show the world.

      If you dislike but somebody likes… this is how the world. After all we are humans and not robots to do same…

      Reply
  12. coder says:
    November 6, 2008 at 4:07 PM

    By the way dont you even test your layouts in different web browser’s since this post is unreadable in IE7 !!

    Reply
    • nhc1987 says:
      November 6, 2008 at 5:35 PM

      Thanks for your comment. Just some problems with super *stupid* IE.

      Fixed.

      Reply
  13. harry says:
    December 6, 2008 at 2:03 PM

    how can remove the tagline ? or add adsense horizontal ad link in it ?
    plz help ……….

    Reply
  14. harry says:
    December 8, 2008 at 11:34 AM

    i remove all ‘ with ‘ but same error comes

    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Open quote is expected for attribute “{1}” associated with an element type “type”.

    plz help ………

    how can i remove this tagline from my blog?

    Reply
  15. au courant says:
    December 9, 2008 at 10:22 PM

    Hi there – thanks for this template. I’ve made some basic edits and it seems to be working great. The only thing I can’t get to work is the ‘put the date here’ section in the tagline.

    I’ve tried the steps above over & over, but to no avail.I tried it on a test blog with a lot of sloppy hacks and you can see that it leaves little arrow at the top left hand corner; I don’t want that to show on the actual blog.

    Is there something I am missing? Can you break it down step by step for me? Thanks!

    Reply
  16. guitars blog says:
    December 26, 2008 at 10:52 PM

    Nice tricks. I’ll try it on my template.

    Reply
  17. Download Extra says:
    January 14, 2009 at 3:25 PM

    It’s so simple for a amateur coder. I think you should post something excellently. Regards

    Reply
  18. Jamie says:
    January 31, 2009 at 1:53 PM

    Does’nt work on my blogspot .Why??

    Reply
  19. Affiloblueprint success says:
    July 4, 2009 at 9:53 AM

    Are there adsense units in the html template? Thanks I implemented this already in my site. Thanks

    Reply

Leave a comment

Click here to cancel reply.

Comments guidelines: If you drop SEO comments (ie "My Cool Online Shop" instead of "Michael"), I will remove your links! Use your name when leaving comments!

RSS feed

Feedburner RSS feed
Most articles on this site are related to blogger templates, wordpress themes, blog design, tips, tricks, and plenty of fun :)

Grab the feed or enter your email address to get the party started! It is FREE.

Search our archives

Categories

  • Advertising Networks
  • Affiliate Marketing
  • Blogger Templates
  • Blogger Tutorials
  • Blogger Widgets
  • Blogging Tips
  • Blogosphere
  • Personal
  • Reviews
  • Search Engines
  • Site News
  • Web Stuff
  • Wordpress News
  • Wordpress Plugins
  • Wordpress Themes
  • Wordpress Tutorials

Top Commenters

  • Lindagr (6)
  • Web Hosting Service (6)
  • Jacques Snyman (5)
  • Yogindernath (5)
  • Ali Hussain (4)

Entrecard Blog

More Resources

  • Domain Name Registration
  • Web Templates
  • Cheap Hosting
  • Unlock iPhone 2.2.1
  • Dataflurry Seo Services
  • TV on PC
  • Web Hosting Reviews
  • Apple Iphone
  • Unlock iPhone 3G
  • HD Wallpapers
  • UK Web Hosting
  • Web Hosting
  • Your link here →

Recent Posts

    • bbPress 1.0 Final Is Available
    • Feature Pitch Premium Wordpress Theme by WooThemes
    • Internal Linking and Search Engine Optimization
    • ePhoto Premium Wordpress Theme by Elegant Themes
    • WooThemes 4-for-1 Special Offer
    • Comparing Mobile Broadband Providers and Broadband Deals at Broadband-Expert
    • Why You Might Not Be Seeing Desired Earnings
    • Wordpress 2.8 Is Available!
    • Getting Started with Search Engine Optimization – Part 4
    • Education Premium Wordpress Theme by StudioPress

Popular Posts

    • Arthemia magazine blogger template (486)
    • Google PageRank update September 2008 - My blog got PR5 (150)
    • Maggo magazine blogger template (106)
    • Google Pagerank Update December 2008 - ThemeLib is now PR6! (105)
    • Personal Mag magazine blogger template (100)
    • White Space blogger template (93)
    • ThemeLib Giveaway Free Memberships to Elegant Themes for Three Subscribers (87)
    • Astro colorful blogger template (83)
    • Link love to Top Commentators :) (80)
    • Photobucket Bandwidth Exceeded! I Need Your Help! (74)

Recent Comments

    • Haigo Hein:This SEO stuff is so hard, I am still so dumb in this area:...
    • Affiloblueprint success:Are there adsense units in the html template? Thanks I implemented this already...
    • Jacques Snyman:Angie, that is my stance too. WordPress is KING, but I see that WooThemes have ...
    • Jacques Snyman:It does look rather simple, doesn't it? I am playing with VibrantCMS, another W...
    • Tom:Good article...I am glad that you mentioned internal linking. I don't think en...
    • Tom:I really like the template...it is very functional yet clean...
    • Mike:Thanks for the tip. I added the links to the blog - easy and works great. ...
    • simon:i feel that to get success with your site or blog, concentration is very import...
Copyright
Links
© 2008 - 2009 ThemeLib. Arthemia Theme by MichaelJubel - Enhanced by ThemeLib
Cheap Web Hosting UK Provider | Best Website Hosting UK | Complaints
Choose the best Hosting for your website | Web Hosting UK by pickaweb.co.uk