Support » Fixing WordPress » sidebar not getting called?

  • I was working on this site a lot with WP e-commerce plugin trying to do some things that maybe where over my head. But I started to see that some of my theme pages were not being called from my selected theme folder. So I cleaned up the server, deleting all the themes that I wasn’t supposed to be using.

    Well now my theme won’t call the sidebar.

    So I went to the 3 theme folders and added this line to the top (very first line) of each index.php page:

    <!-- /wp-content/themes/baitpens/index.php -->
    <!-- /wp-content/themes/default/index.php -->
    <!-- /wp-content/themes/classic/index.php -->

    And none of those comments show on the served page. Shouldn’t it? Isn’t that the starting page which calls everything else? Is there another place to look for index.php?

    Thanks for any help,

Viewing 8 replies - 1 through 8 (of 8 total)
  • <?php get_header(); ?>

    is that the first line of your index.php?

    put your comments after that line

    <!– / –>
    <?php get_header(); ?>

    Changed to:
    <?php get_header(); ?>
    <!– / –>

    Same results, the comment does not show when I look at the HTML in FireFox.

    But I did just try switching to the “default” theme and my sidebar was called.

    These are the last 2 lines of index.php of the “baitpens” theme:

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    The footer is called the sidebar is not.

    the baitpens theme has a sidebar.php?


    I have an almost identical theme working at:

    And I’ve compared the 2 closely and can’t find anything that might be causing this. I even search the 2 data bases to see if there is some setting that seemed different. Can’t find anything unusual.

    I assume you have widgets in the sidebar that should be showing?

    Yes, the code is:

    <?php /* WordPress Widget Support */ if (function_exists('dynamic_sidebar') and dynamic_sidebar(1)) { } else { ?>

    and then it calls pages, bookmarks, etc and formats them. In that respect it is identical to the sidebar at

    I went back to a copy of the theme folder I saved a couple days ago and it is showing the sidebar. I will have to see if I can find what I did to cause this problem.

    Fortunately most of the work I was doing was to the e-commerce plug in which has its own theme folder so almost all the work I did still works with the old (current) theme.

    If I figure this out I will post it here if it isn’t a stupid mistake.


Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘sidebar not getting called?’ is closed to new replies.