Having a great site is one thing, but building a community is quite another. To really push your site's community efforts, it can pay to put the most desirable actions right at the top of your site's theme. This is what WordPress.com does, and in this recipe, is what you'll do.
You need to have a basic theme constructed and, for the best experience, you need to have separated your header elements out into header.php
.
First, you need to decide what components you wish to put into your site's toolbar. For this recipe, we'll follow the lead of WordPress.com. The toolbar on that site allows users to perform the following actions:
Access the currently logged-in user's profile
Log in and log out
Search the site
Access a random post
The WordPress.com toolbar also allows for a variety of other actions, but these won't be discussed in this recipe.
Next, you need to create the HTML for the toolbar. To keep the toolbar markup as clear...