Posts Tagged ‘Sidebar’

Split Sidebar into Two Divisions

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.

WordPress Theme Development 5 – Sidebar

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() ) : [...]

Remove WordPress List Pages from Sidebar

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: