Support » Fixing WordPress » Include Home in list of pages

  • When the Pages are listed in the sidebar the one page that is always missing is the home page, which presents a problem for visitors once they have navigated away from the home page.

    Does WP have a way to code so ‘Home’ is included in the list of pages?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Mine links to home on every page by clicking the title of the blog.


    If it was a perfect world and all visitors knew of that feature, then it would not be an issue. I try to avoid frustrating visitors by making them guess how to perform a function.

    Useability is an important factor for me when designing a site.

    umm, anyway wp_list_pages isnt going to include a home page, unless its a page.

    I s’pose you could create a page and redirect it to the front of the blog?

    Obviously this can be done, since there are countless posts from people that want to remove the link.

    You might want to search, take a look at how its being accomplished in the various themes those people are using, and then take a look at those themes.


    In the past I’ve hard coded the home page link, but was hoping that a code tweak would accomplish the same thing.

    Maybe I’m missing something. What advantage do you see in not showing the ‘Home’ link under Pages if there isn’t navigation bar that already displays it (I’m referencing the Classic theme that installs with WP).

    I don’t know that I do see an “advantage”, per se. I do tend to find all the navigational stuff that people include on sites to be overdone though.

    I’m optimistic, (and that’s probably a bad thing, since Im let down at every turn in my expectations), that people can manage their way back to the front page of just about any site, so me personally, I use the “header goes home” link and let it be.

    Also, I have to say, I think it “looks” dumb to have a go home link in any sidebar.. If a navigation menu is at the top of the page, it makes more sense, visibly, for me. Thats just a personal preference though.

    I concur with your comment.

    …it “looks” dumb to have a go home link in any sidebar. If a navigation menu is at the top of the page.

    The Classic theme that comes with the out-of-the-box WordPress only has the sidebar navigation and not including ‘Home’ at the top of the list of Pages is also dumb.

    I think we both agree that a ‘Home’ link is a good idea–just not in more than one location (sans footer).



    Here is a workaround for widgets.php

    /* Default Widgets */
    function wp_widget_pages( $args ) {
    	extract( $args );
    	$options = get_option( 'widget_pages' );
    	$title = empty( $options['title'] ) ? __( 'Pages' ) : apply_filters('widget_title', $options['title']);
    	$sortby = empty( $options['sortby'] ) ? 'menu_order' : $options['sortby'];
    	$exclude = empty( $options['exclude'] ) ? '' : $options['exclude'];
    	if ( $sortby == 'menu_order' ) {
    		$sortby = 'menu_order, post_title';
    	$out = wp_list_pages( array('title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude) );
    	if ( !empty( $out ) ) {
    	<?php echo $before_widget; ?>
    		<?php echo $before_title . '<img src="wp-content/themes/absurd/images/pages.png">' . $after_title; ?>
    			<?php echo $out; ?>
    		<?php echo '<ul><li><a href="">Home</a></li></ul>'; ?>
    	<?php echo $after_widget; ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Include Home in list of pages’ is closed to new replies.