Pages

Search This Blog

Customize Your Sidebar and Keep it Consistent


The sidebar in WordPress is a dead “giveaway” when a user visits your site. The sidebar will have default titles like “Blogroll”, “Categories” and “Archives”. You can easily change the text of these titles, and which sections are displayed, by editing the sidebar.php file in the theme directory. Also, WordPress displays a different sidebar depending on what page of the site you’re on, which can also be changed. I personally prefer to display virtually the same sidebar on all pages, to keep the site consistent.
Even if you’re not familiar with PHP, WordPress code is very developer-friendly, and easy to work with. A simple knowledge of how functions are called and how to open and close if statements is often more than enough to help you customize some of the sidebar code.
Also, you can easily duplicate and customize certain sidebar sections. Look at the sidebar here on Impressive Webs: You’ll notice there’s a list for “Articles” and “Tutorials”. This is done by duplicating the “categories” section and controlling what categories are displayed using parameters inside the function call for that particular section.
Check out the WordPress Codex for further information on customizing category listings.

No comments:

Post a Comment

Related Posts Plugin for Blogger...
 

Blog Archive