• 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.

    https://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 (https://jigsaw.w3.org/css-validator/) and everything looks right. So why is the sidebar MIA?

    Any help is greatly appreciated – thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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]

    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

    Thread Starter psophia17

    (@psophia17)

    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.

    Thread Starter psophia17

    (@psophia17)

    I figured it out – thanks for the help!

    Here’s hoping the sidebar stays where it belongs…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebars MIA’ is closed to new replies.