O'Reilly logo

WordPress 2.8 Themes Cookbook by Lee Jordan, Nick Ohrn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a global toolbar for your theme

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.

Getting started

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.

How to do it...

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required