WordPress Countdown Widget

Today is my birthday. Woo! So that means, I’m not doing anything fancy, so without further ado

Number 4 in Widget-A-Day is a countdown widget.

It’ll display the amount of time until a certain event, or if it passed, how long ago it was. Lame? Yes. Do I care? Not really. Is there Javascript? No. Was there supposed to be? Yes. Why not? Because I’m lazy.

Update: By request, added a new version

Download countdown.zip (countdown.tar.gz)

Default display:
countdown1cropped.png

Admin panel:
countdown2cropped.png

Requirements

Installation

  1. Download countdown.zip (gz)
  2. Extract and upload countdown.php to the plugins/ directory
  3. Enable Countdown Widget in the Plugin admin panel
  4. In widget admin panel, place Countdown in the sidebar, and edit it to enter your the time and name

Download countdown.zip (countdown.tar.gz)

8 Comments

  1. lame? haha, it’s not that bad! 😀

    i was just curious if there is some way to customize the colors/fonts?

    thanks!

    ~jenny

  2. Jenny, sorry, your comment got stuck in moderation. But, I just hacked together a a version that can use styles.

    I added widget style, which is the style for the whole widget. Just edit it with CSS.

    I also added link style, which is the style of the link, if existent. Just use CSS.

    So, if you want the color to be green and the font be larger, edit widget style with “color: #00FF00; font-size: 125%;”

    Here’s the new version:
    Download countdown-new.zip (countdown-new.tar.gz)

  3. Any tips on how can i change this widget, so it can be used several times?

    (like the default text and rss widgets)