CSS Tooltips

A tooltip is a block of information that appears when you hover over a link. It can be used to show extra information about the link a visitor is about to click. While the technique is normally achieved with javascript I'll show you how to do it with nothing but CSS and a little HTML. The first thing we need to do is assign a new class to the link where we want the tooltip displayed. For the sake of... continue reading

Redirect Users To Front Page After Login

A question that pops up in the forums from time to time and appeared again just the other day is how do I redirect users to the front page after they log in? In other words the admin didn't want his users being sent to the backend which is the WordPress default behaviour. I'm sure there are several plugins in the official WordPress Plugin Directory that will accomplish the task although I haven't looked... continue reading

How To Show Most Popular Posts Without a Plugin

Here is a simple and effective way to create a list of your most popular (most commented) posts without using a plugin. First, add the following to your theme's functions.php file ... function most_popular_posts($no_posts = 10, $before = '<li>', $after = '</li>', $show_pass_post = false, $duration='') { global $wpdb; $request = "SELECT ID, post_title, COUNT($wpdb->comments.comment_post_ID)... continue reading

Split Categories Into Two Columns

WordPress uses the template tag wp_list_categories() to output a list of categories on your blog. While it can be used anywhere it most commonly appears in the sidebar. By default, the list will be outputted as a single column. In this post I'll show you how to break the list into two columns. Why do this? For any number of reasons. Perhaps you have a wide sidebar and you want to fill in some of that... continue reading

Add a Tabbed Interface to Your Sidebar

We've all seen those neat javascript powered tabbed interfaces in the sidebars of some themes. In fact they're common place in most premium themes. Although I don't use the feature here it can come in very handy with a theme that has limited sidebar real estate. In this post I'll show you how you can easily add a tabbed interface to your own blog. There are some fine scripts out there such as MooTabs... continue reading