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.
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!
<?php get_sidebar(); ?>in
wp-content/themes/THEME_NAME/footer.phpafter 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]
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
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 –>
<p><?php bloginfo(‘name’); ?> is powered by WordPress</p>
<!– Please leave this link intact –>
<?php wp_footer(); ?> </div>
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:
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.
- The topic ‘Sidebars MIA’ is closed to new replies.