Helping ordinary people create extraordinary websites!

WordPress Customization

By Justin Laing
2008-01-09

Sidebars

Wordpress Sidebar Example

 

Most templates have one or sidebars. Sidebars usually contain navigational links, but they can also include search boxes, lists of related pages, and other widgets (like mybloglog etc.). It’s really easy to edit your sidebars. Just find the sidebar.php file and open it your editor. You’ll see the HTML that creates the side bar and puts the content within it. There are a few template functions that are helpful within the sidebar like wp_get_archives(); which will display a list of time periods that you wrote blog posts (think August (8), September (2) which are links to those months posts). Most sidebar functions are meant to be placed within <ul></ul> tags because they format their output as lists. So in your side bar you might have this code:

Sidebar Code

This code would generate two lists, one of archive months, and one of categories you have posted under.

You can find more of these functions at:
http://codex.wordpress.org/Template_Tags





Tutorial pages:

Originally posted on Makebeta


 2 Votes

You might also want to check these out:


Leave a Comment on "WordPress Customization"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS