WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Navigation Sidebar Disappears when I Click a Page (3 posts)

  1. Matthew Trust
    Member
    Posted 3 years ago #

    Hello,

    I have a left sidebar div containing my list of WordPress pages arranged in am unordered list that I'm using for navigation purposes (about me, what I do, etc.). I made a "sidebar-left.php" file and am using the following code:

    <div id="sidebar-left">
                     <ul>
                       <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
    	           <?php wp_list_pages('depth=1&title_li=0'); ?>
        	         </ul>
                     </div>

    The issue I'm having is that when I test the site on my local server, this entire div disappears when I click on any of the pages (except home). This basically forces my audience to click "back" in order to get to the home page. How do I rectify this?

    Thanks!

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    is this 'sidebar-left' called from within page.php?

    i.e. with
    <?php get_sidebar('left'); ?>

  3. Matthew Trust
    Member
    Posted 3 years ago #

    No it wasn't. I just put it there and it works fine. Thank you!!

Topic Closed

This topic has been closed to new replies.

About this Topic