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:

40
41
42
43
44
  1. </li> <?php }?>
  2.  
  3. <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
  4.  
  5. <li><h2>Archives</h2>

After removing the line, the sidebar.php will become:

40
41
42
  1. </li> <?php }?>
  2.  
  3. <li><h2>Archives</h2>

Related Posts

References

No Comments

No comments yet.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">