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

  1. Matthew Trust
    Posted 5 years ago #


    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">
                       <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
    	           <?php wp_list_pages('depth=1&title_li=0'); ?>

    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?


  2. Michael
    Forum Moderator
    Posted 5 years ago #

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

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

  3. Matthew Trust
    Posted 5 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