WordPress by default has a persistent sidebar which appears on most every page. One thing I’ve noticed while trawling the sites of designers is that usability is greatly improved by making the sidebar contextual – that is, not a generic site-frame that sits on every page. It’s something I’ve been playing with on this site, and I will use it as an example.
There are several ways one can improve usability on a site with the sidebar; things I will arrange from easy to hard. The first thing is to eliminate redundant information. For example, do I really need the “about me” section of the sidebar on the about page? It’s redundant, and it links to itself. Easy enough; WordPress’s body_class() function lets me style particular pages. The following code hides the about section from the sidebar only on the about page:
body.page-template-about-php .about-widget { display: none; }
Second, there might be things one wants to emphasize on certain pages – the opposite of the first point. On the blog index, for example, I’ve used more page-specific CSS rules to make the topics a full vertical list instead of just a row of icons. Presumably if you’re on the blog’s index, you’ll be more likely to want to know what the categories are at a glance. On other pages, it collapses back into the row of icons.
Now we get into more difficult territory. Newer versions of WordPress allow you to have multiple sidebars. Instead of just get_sidebar(), you can say get_sidebar('alternate'), which will load sidebar-alternate.php instead of sidebar.php. This feature can let you modularize any number of sections on your site, but I’ll only treat the most obvious uses of it here.
This feature is useful for total layout changes. For example, the portfolio page. How constrained would I be if I couldn’t use the entire width of the page! The entire sidebar has been moved to the footer, allowing the portfolio to expand to the total width, and the site selector acts as a surrogate sidebar.
The footer-sidebar is used wherever the contents of the sidebar would be better off totally out of focus, or as an afterthought. The reader of a single-post page, for example the one you are possibly reading from (if not, click here), is more interested in the article than incidental site information. Therefore, content relevant to the article – namely the comments – are placed side by side with the article, not the site-info – which is placed in the footer should the reader be interested after the article.
Look at the following layouts from a birds-eye view. Each of them is a two-column layout, but each of them has a different layout. Without looking at the particulars of each page, can you tell what’s supposed to be emphasized on each?

A well-executed series of sidebars serves to focus the reader on whatever content the page is about. It can serve as navigation, or as complementary information, highlighting and enhancing the purpose of the page it’s on. On the other hand, a static sidebar that remains stubbornly the same across all sections of a site serves as nothing more than visual filler; something the reader (at best) mentally ignores after the first page or two, or (worse) is distracted by.

More Recent Posts
Marriage As Sacrament: Did Protestants Call It Wrong?
he strength of the Protestant reformation was the axe it applied to contemporary Catholic doctrine. One of the many categories to get the axe was the sacraments. Catholics had a nice round list of seven, several of which are nowhere spoken of in the Bible. But one in particular got thrown out perhaps too hastily, one whose consequences are now coming to bear in the modern American political scene: marriage…
God, Authority, and Authoritarianism
Ni Dieu Ni MaĆ®tre – “Neither God Nor Master” – is a trendy slogan among anarchists. The idea is that the self is the final authority, that it has an obligation to submit itself to no authority, religious or political. There indeed seems to be a sentiment that religious devotion is incompatible with liberty. Submission to the state, the logic goes, is only a small step to a mind accustomed to submission to God. Is it such a small step, though, as if the authority of God were essentially the same as the authority of men but on a grander scale?…
On The Orders of Beauty
The idea of beauty as the reduction of all particulars to a single head still allows for a dichotomy in the treatment of beauty; what I will refer to as the appreciation of first and second order beauty. First order beauty is the most common conception, simply because it is the most obvious. It is beauty in an object as such, and stops there: everything exists for a purpose, and executes its function in the best way possible…
The Principle of Federalism: Freedom To and Freedom From
The idea of federalism is founded on ideas of competition and discovery. Institutions are ideally selected in the political realm in the same way as firms are selected in the market. But just as the principle of private property guides the competition of the market, so state competition if it is to generate order must have its own exogenous guiding principle: Rules are to be applied at the highest level at which they constitute a general principle…
Art Culture and Spontaneous Order
The art world is a fascinating example of spontaneous order. Though the particular motives are different, like with the market, motive is indeed the key to art culture as spontaneous order. There are two axes on which we can describe the motive of artistry: first the artists’s with regard to himself, and second the artist’s with regard to his audience…
All Posts »