If you are using the template tag, wp_page_menu(), to display your list of Pages, then may want to use this argument: ‘show_home=0’.
Related:
Stepping Into Template Tags
Stepping Into Templates
Template Hierarchy
i dont really know if i’m using template tags. which page should i look in? and where should i add ‘show_home=0’??? sorry, wordpress newbie.
please advise. thanks!
With the help of the Template Hierarchy article, determine what Template is displaying your Pages, then paste the content of that template in a pastebin and report the link back here.
i think page.php displays my pages but i’m not really sure. could be single also.
here’s the code for page.php:
<div id="outer_wrapper">
<?php get_header(); ?>
<div id="contentwide">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php list_subpages_andreas01(); ?> <?php // This generates the subpage menu. If you don't want to use it, delete this line. ?>
<div class="post">
<?php the_content('<p class="serif">Read more »</p>'); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<?php edit_post_link('Edit this page','<p>','</p>'); ?>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div>
</div>
<div id="footer">
<h5>The GCCC is a not-for-profit 501(c) (6) non-government membership organization. Member of CIANJ, Member ICC, affiliated
with<br /> NJAWBO Bergen Chapter, affiliated with Bergen Community College small business development center.</h5><br />
© 2009 Gold Coast Chamber of Commerce<br />
Designed by <a href="http://www.adfgadfgadfg.com" target="blank">adfgadfgadfg.com</a></div>
</div><!-- end outer_wrapper div-->
Don’t see it there. What about a sidebar.php?
there’s nothing in my sidebar.php file. i deleted it all. the original theme had a second sidebar on the right side of the page that this file refers to. i didnt want that sidebar, so i deleted the contents of the file.
here’s my single.php file:
<div id="outer_wrapper">
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<h2><?php the_title(); ?></h2>
<div class="contenttext">
<?php the_content('<p>Read more »</p>'); ?>
</div>
<?php link_pages('<p><strong>Pages:<strong> ', '</p>', 'number'); ?>
<p class="postinfo"><strong>Posted:</strong> <?php the_time('F jS, Y') ?> under <?php the_category(', ') ?>.<br />
<?php the_tags('Tags: ', ', ',''); ?><?php edit_post_link('[e]',' | ',''); ?></p>
<div class="navigation">
<p><span class="prevlink"><?php previous_post_link('« %link','Previous post',''); ?></span>
<span class="nextlink"><?php next_post_link('%link »','Next post',''); ?></span></p>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>No matching entries found.</p>
<?php endif; ?>
</div>
</div>
<div id="footer">
<h5>The GCCC is a not-for-profit 501(c) (6) non-government membership organization. Member of CIANJ, Member ICC, affiliated
with<br /> NJAWBO Bergen Chapter, affiliated with Bergen Community College small business development center.</h5><br />
© 2009 Gold Coast Chamber of Commerce<br />
Designed by <a href="http://www.adfgadfgadfg.com" target="blank">adfgadfgadfg.com</a></div>
</div><!-- end outer_wrapper div-->
Assuming you don’t have a widget that is doing that…
Get http://wingrep.com and search your theme for wp_list_pages or wp_page_menu. Note need to download your theme to your local machine first before using wingrep.
well i tried, to no avail, to use the plugin that samboll suggested above. but i’ll give this a shot.
can’t i just use the “find – in source code” tool in dreamweaver to find these items?
ok. i found wp_list_pages in:
classic\sidebar.php:
<?php wp_list_pages('title_li=' . __('Pages:')); ?>
default\sidebar.php
<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
wp-andreos01\functions.php:
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
wp-andreos01\functions.php:
$html = wp_list_pages("child_of=$parent_id&depth=$depth&echo=".(!$return)."&title_li=0&sort_column=menu_order");
wp-andreos01\header.php:
<?php wp_list_pages('exclude=19&sort_column=menu_order&depth=1&title_li='); ?>
please advise as to the next step. thanks!
It’s probably this line in your wp-content/themes/wp-andreos01/functions.php
<li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li>
thanks for hanging in there with me.
now that we’ve identified the target line of code, what do i do to it? remove it?