Welcome to the Caffeine WordPress Theme!

Quick Links:

Download Caffeine 0.2 – The latest version of Caffeine will always be available here.

Caffeine Demo Page – Check out an unmodified demo of the current version of Caffeine.

WordPress Home – You probably already have this.

bsuite Home – Not required but a highly recommended stats package.

Quick Install Directions

  1. Download Caffeine from the link above
  2. Unzip the .zip file
  3. Copy the Caffeine folder into your WordPress themes directory (wordpress_directory/wp-content/themes)
  4. Go to the Presentation menu of the WordPress Admin page and select Caffeine to activate the theme

CaffeineWelcome to the official homepage of the Caffeine WordPress Theme by Jon Emmons. I developed this theme for use on my own page, but after hours of work making the code more easily modifiable, trimming the style sheet and simplifying the design I decided to distribute it so others can take advantage of some of my work.

The Caffeine theme is based on the default WordPress theme. I was also inspired by the popular Connections theme by Patricia Muller. What makes Caffeine different? I have spent countless hours removing archaic ‘endif’ statements, cleaning up loops and indenting code for easier readability.


Admin Block

  • Optimized for 1024×768
  • Content viewable at 800×600 (sidebar will require scrolling)
  • Search box in header
  • bsuite compatible
  • Author listing for multi-author sites
  • Links block shows links in all categories
  • Minimal images for maximum flexibility
  • Admin Block for logged in users (see image right)

bsuite is a great stats plugin for WordPress by Casey Bisson. Since I use bsuite I have included the bsuite calls in the Caffeine theme, but if you’re not using bsuite don’t worry, the stats will only show if bsuite is active. If you are using bsuite, you’ll automatically get your top 10 stories in the sidebar and the story pulse in the footer of single stories. Basically, get caffeine, get bsuite, enjoy.

The admin block seen above is something I added for the site administrators. If a user is logged in and has enough privs to edit posts they will see the Administration block in the right sidebar. From there they will have a direct link to the WordPress dashboard, write a post, manage posts, moderate comments, manage links, bsuite quickstats, and logout. The number of comments awaiting moderation and the number of bsuite hits today are also displayed. If the user is viewing a single post there will also be an edit post link.

Caffeine is distributed under the Gnu General Public License (GPL). Feel free to take it and use it as you wish. I only ask that if you find something awry please let me know (via email or a comment here) so I can fix it in my theme.

Current Version: Caffeine 0.2

What’s New

Well, everything. This is the first version of Caffeine! (0.1 was just the development version)


I have tested Caffeine extensively with the following configuration:

  • WordPress 2.0
  • bsute b2v3

It should work with other versions but don’t be too surprised if you run into some issues. If you do have problems, feel free to let me know.

Known Issues

  • Admin and author emails exposed.
  • Work-around: Good spam filtering (thanks gmail).

  • Resizing in IE causes sidebar blocks to misalign.
  • Work-around: Refresh the page and everything is fine.

Thanks to Matt and Zach for helping me with my constant stream of questions while developing this theme. Without you guys I’d have never gotten it together.

24 thoughts on “Caffeine”

  1. Hi,

    I like your theme and I will try it. Actually I’m waiting for the new wp release because I have some problem with the 2.03

  2. Nice theme, been hacking around with it for a few days, thanks for all your hard work!


    Any idea how I could make a “subscriber block” like your cool “administration block”?

    I want to have a block for only registored users to see.

  3. geuss the code in the comment box is not working, sorry fo the many posts.

    This is what I changed:




  4. Jonathan,

    Great idea!

    That sounds right. Fair warning though, I think the current_user_can function is a WordPress internal function. Just watch out for it when you upgrade.

    Glad you’re enjoying the theme. It was lots of fun to write.

  5. Love the theme, Jon!

    I just have one tiny nitpick. When viewing the monthly archives, the sidebar doesn’t align correctly. Any idea how to fix this?

    I thought maybe it was just a result of my customization of the theme, but it also happens in your demo. Go to the demo, click on the May 2006 archive link in the sidebar. The “currently browsing” block is fine, but everything below that in the sidebar shifts to the left over the border.

    In any case, it’s still a cool theme, and I’ll still be using it even if this can’t be re-aligned. I doubt many people will be looking at my monthly archives anyway. (It aligns correctly for everything else, btw.)


  6. Thanks Dan!

    I have to admit that I started modifying the theme for use only on my own site but after I spent so much time cleaning it up I figured why not share it?

    Glad you like it. You did a nice job modifying it too!

    Have fun.

  7. Thanks putting the time into this theme. As someone that is more user than hacker, I appreciate that the theme is clearly structured . . . it makes it easy for guys like me to see and understand how themes work.

  8. Hi, I loved this theme of yours and tried it on mine but I ran into a couple of problems. I am not m uch of a computer geek so don’t quite understand whats wrong.

    1. all the smileys have gone to one side of the post
    2. the header name is half cut
    3. as the page begins, its all fine….. halfway through the posts start getting distorted!!!!

    Can you help me with this????

  9. I think the smiley thing has to do with how images are handled in the style sheet. You might look in your old theme’s style sheet for something which defines image.wp-smiley (it may not appear exactly like that) and paste that into the styles.css for the caffeine theme.

    In Firefox the header looks fine. What browser are you using?

    If the distortion you are talking about is the images that spill over into the next post all you need to do is at a tag
    after the image and the story will extend to include the entire image. I may automate that in the next revision but that’s still a couple months away.

    Hope this helps.

  10. 1. Template is good 🙂

    2. I am looking for how to show pages on home page and how to make it widgetized – please let me know link to some info 🙂

  11. Hi Jon,

    I love the caffeine theme!!! I am very new at this so my question about the theme could be, well, stupid. Here it goes: I would like to create a static home page with a mini loop so that there is consistant content (like welcome stuff) at the top and the first couple of blog entries at the bottom. Is that doable? If so, can you tell me how?
    I think ita’s comment basically is asking about the same things. Could you help me out? Thanks!

  12. Hi Jon,

    I purchased your Oracle Shell Scripting book awhile back and, in fact, I wrote your first review on Unfortunately, I somehow lost the website link to your code depot. Although I have the username/password, I don’t know where to get the actual code. Could you please provide this info for me? I would really appreciate it! Thank you in advance.



  13. I recently purched your book, oracle shell scripting, and I have the username and password in your book, but no web site. There are several of your scripts I would like to download from chapter 12. Any chance I can get the scripts in soft-copy from your book from you?

  14. Hi bought your book Oracle Shell Scripting. Can’t recommend it highly enough – very good book just what I was looking for.

    Could you please email me the url for the code depot.

    Thanks in advance for your help with this.


  15. I recently purched your book, oracle shell scripting, and I have the username and password in your book, but no web site.

Leave a Reply

Your email address will not be published. Required fields are marked *