WordPress.org

Ready to get started?Download WordPress

Forums

Sidebars MIA (5 posts)

  1. psophia17
    Member
    Posted 5 years ago #

    I've had minimal experience with WP, but enough that I thought I could build my husband's business website safely. So far, so good, except the sidebars keep disappearing.

    http://badumbums.com/whsign2/

    I uploaded all of the theme files, I changed the header image, all the text that we wanted to migrate went correctly. Then I took out the "comments" portions of the page template, single post template, and main index template. Everything looked right, and a few hours later the sidebars are gone.

    I used the CSS validator (http://jigsaw.w3.org/css-validator/) and everything looks right. So why is the sidebar MIA?

    Any help is greatly appreciated - thanks in advance!

  2. TapeBoy929
    Member
    Posted 5 years ago #

    Put <?php get_sidebar(); ?> in wp-content/themes/THEME_NAME/footer.php after the first </div> tag. If the code isn't 'broken' then the sidebar should appear in the floating-right position as usual.

    [signature moderated Please read the Forum Rules]

  3. stvwlf
    Member
    Posted 5 years ago #

    Hi

    On your homepage at least, your sidebar code is displaying within the main content area.

    What you are after is this

    <div id="content">
      <div id="main"></div>
      <div id="sidebar"></div>
      <div id="footer"></div>
    </div>

    What you have now is this

    <div id="content">
      <div id="main">
         <div class="post"></div>
         <div id="sidebar"></div>
      </div>
      <div id="footer"></div>
    </div>

    Hopefully that helps

  4. psophia17
    Member
    Posted 5 years ago #

    I think I tried both of these ideas correctly, but neither made a difference - still no sidebars.

    Here's what I have on the footer.php at the moment:

    </div> <!-- eo content -->

    <div id="footer">
    <div id="footer-inner">
    <p><?php bloginfo('name'); ?> is powered by WordPress</p>

    </div>
    </div>

    </div>

    <div id="credit">
    <!-- Please leave this link intact -->
    <p>WordPress Themes</p>
    </div>

    </div>

    <?php wp_footer(); ?> </div>
    </body>

    </html>

    I haven't changed the original code at all.

    Does the code from the stylesheet make a difference? This is what it looks like now:

    #sidebar {
    padding: 0;
    margin: 0 0 0px 540px;
    }

    My husband says he's okay without the sidebar...but I would like to figure out what I'm doing wrong. Again - thanks so much for the help.

  5. psophia17
    Member
    Posted 5 years ago #

    I figured it out - thanks for the help!

    Here's hoping the sidebar stays where it belongs...

Topic Closed

This topic has been closed to new replies.

About this Topic