Dynamic Search Bar Text With Javascript

38

Every blog has a search bar. The search bar is a typically boring affair, with a white background and a button saying “Search,” and worst of all, it takes up a fair bit of room in your sidebar. Why not use a little Javascript to liven things up and save space? This effect can be seen in use on the search bar to your right.

NB – This method is primarily for Wordpress, but could be easily adapted to any other platform.

1 – Find The Default Search bar.

The code for your search bar usually lies in searchform.php, or in functions.php if it has been set up as a widget, and will look as follows:

Read More »

Cut Category Clutter and Toggle Visibility

54

Grouped Categories
Photo by *Micky*
Categories are very easy to set up in a blog. So easy in fact, that we can often get carried away and end up with dozens of categories, all clogging up space in our sidebars. Rather than deleting these categories, we can remove the clutter by linking the categories into groups.

We then show only the group titles in the sidebar, and when a group title is clicked, the list of categories in that group expands beneath it. You can see a demo here.

This solution is very easy to implement, will remove the clutter for the vast majority of your users. For your users, and search engines, who have disabled Javascript, the complete list of categories will be shown as normal (And for the code junkies, it’s also XHTML valid!)

Read More »

Feedburner on The Page, Regardless of Stats

20

The feedburner logo. Feedburner provide a free service, whereby they monitor a number of stats about your RSS feed, as well as offer a few other tweaks (Like the email subscription option we offer here). All of these services are fantastic, yes, but arguably the coolest offering Feedburner has is the little subscriber count button. But what do you do when you don’t want your readers nosing into those stats?

NB – This method will only work for Wordpress users.

Why Is the Subscriber Count Button Useful?

  1. The statistic itself is a valuable one. The subscriber count tells you how many people have decided that what you write on your blog is important enough for them to read it regularly. There are many other ways of judging a site’s success, each with their own drawbacks, but for a blogger, what could be better than knowing that someone out there considers your writings to be worth reading?

Read More »

Page 3 of 3123