jaydelaney4
Member
Posted 2 years ago #
I began a new WordPress blog this weekend and I'm having trouble getting the sidebars to align properly. I'm using the "Elements of SEO" theme. When I'm on the front page, everything looks fine. However, when I click on an individual post, the sidebars are bumped down underneath the post. This only happens though when I'm not logged in. If I'm logged in, the sidebar alignment for individual posts looks fine.
You can see what I'm talking about here: http://bigfootdoc.com/bigfootdoc/2009/09/2008-sxsw-film-festival-world-premiere/
If you access the main page, it should show up with the proper alignment: http://bigfootdoc.com/bigfootdoc
Can anyone help? Thanks in advance.
It looks like your sidebars are sitting inside of the <div id="contentleft">. Look through your single.php file and make sure that div is closed before the get_sidebar code.
As jessn says, you have code errors; look at your page validation, fix the errors, and then check your site in all browsers (Win and Mac) to see if it renders consistently.
jaydelaney4
Member
Posted 2 years ago #
Thanks jessn. I don't have a single.php file though.
I have the following pages:
* 404 Template (404.php)
* Archives (archive.php)
* Comments (comments.php)
* Footer (footer.php)
* Header (header.php)
* Main Index Template (index.php)
* Page Template (page.php)
* Search Results (search.php)
* Theme Functions (functions.php)
* home.php (home.php)
* l_sidebar.php (l_sidebar.php)
* myheader.php (myheader.php)
* myheader1.php (myheader1.php)
* r_sidebar.php (r_sidebar.php)
Any suggestions on which to check?
Aha. Ok after reading some user comments here http://elementsofseo.com/2008/07/30/theme-update/ I found this which might work for you (comment number 10):
Never mind about #2 — I had an incorrectly placed div tag in the comments.php file. Here’s how I fixed it. At the end of comments.php, add div tags as follows (I used square brackets in my comments here to avoid code issues.)
[?php endif; // If registration required and not logged in ?]
[/div]
[?php endif; // if you delete this the sky will fall on your head ?]
[/div]
I’ve found that without the div tags there, with short posts, the sidebars wrap underneath the main content area when viewing a comment.
jaydelaney4
Member
Posted 2 years ago #
Thank you songdogtech and thank you jessn! Your advice worked jessn. Now the sidebars are aligned next to the individual posts. The only issue now that I need to address is that the entire right sidebar seems to be right-aligned on the page. You can see what I mean here: http://bigfootdoc.com/bigfootdoc/2009/09/2008-sxsw-film-festival-world-premiere/
I'll try to search the forums here and at Elements of SEO to see if I can figure it out.
THANKS for getting me this far!
jaydelaney4
Member
Posted 2 years ago #
Hmmmm. So I'm really confused. The sidebars line up beside the individual posts in Firefox and Chrome, but when I pull up the page in IE, they're still showing up below the post. And from what I've seen, it seems like 65% of my typical visitors are still using IE for some reason.
http://bigfootdoc.com/bigfootdoc/2009/09/2008-sxsw-film-festival-world-premiere/
Regardless though, THANKS a lot for your help!
i think, your comments.php still puts out the wrong number of closing divs, i.e. one closing div too many - you could post it here so someone can have a look at it.
kmessinger
Member
Posted 2 years ago #
Your site looks fine in IE8. So you can fix the problem wiht a conditional entry for IE7 once you have the problem identifed. The left side of your center sidebar is on top of the right side of your post.
You have errors that if corrected may fix the problem. At the very least, correcting them will make the problem easier to find.
http://validator.w3.org/check?verbose=1&uri=http%3a%2f%2fbigfootdoc.com%2fbigfootdoc%2f2009%2f09%2f2008-sxsw-film-festival-world-premiere%2f