I decided to split sidebar into two divisions. So that I can use the primary sidebar as widgets and secondary sidebar as customize lists. Here is the original sidebar.php.
- Categories
- Buddies & Links
Something Personal Yet Public
I decided to split sidebar into two divisions. So that I can use the primary sidebar as widgets and secondary sidebar as customize lists. Here is the original sidebar.php.
Posted by Ivan @ July 3rd, 2009 in WordPress with Cascading Style Sheets, Layout, Sidebar, Theme Functions, WordPress Theme
In the main index template file, index.php, I added sidebar include tag, get_sidebar();. This tag will include the file sidebar.php. Now, I will talk about what information will be included in this file.
Your sidebar needs to support dynamic widget sidebar as well as old style sidebar. Hence, <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : [...]
Posted by Ivan @ May 4th, 2009 in WordPress with Sidebar, WordPress Theme
Since I already created a horizontal menu listing all my main pages, I want to remove the pages list from sidebar. The theme template file that need to edit is sidebar.php. I just need to remove this line, <?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?> as shown below:
Posted by Ivan @ September 4th, 2008 in WordPress with Sidebar, WordPress Theme
© 2008 - 2010 Ivan Teoh
Under a Creative Commons License except where otherwise noted
Powered by WordPress 3.0 on DreamHost
Blog RSS Feed | Comments RSS Feed | Log in