Im having a problem that I know is right under my nose but I just cannot figure it out. Im not sure if anyone can help me or not. It is once again on the site I have been building http://www.linkcreativedesign.com
On my blog posts that DO NOT have comments.. there are div items that are not inside the wrapper and they are suppost to be in. It is ok on all other. I think I have figured out that is is something in the comment.php file where I need to ad or move a </div> end tag.. but I just cannot figure it out. Ive tried moving it all around, taking one out, adding more and it either messes other things up OR makes it so blog WITH comments have the same issue.
basically my side bars, and footer get all messed up on these blog post single pages without comments.
here is some additional information that is obviously a part of the problem. I have No idea how this is happening.
when I view the page source for the single blog post page on the site that is messed up there is this.. (this is just a snippet towards the end where I see the issue.
There are 2 end divs outside of the </body> and </html> that obviously shouldnt be there… I dont know how they go tthere.. when I go to my footer.php there is no such /divs outside of the </body></html> tags
Ok. When I view the page source of my blog post with comments that has no isses, it also has those 2 </div> tags outside of </body></html> so maybe it is not directly related to the problem.
when I view the page source of my home page or anything that isnt a single blog post page it does NOT have those 2 </div> tags.
Also this is what happens. if I remove one of the </div> tags at the bottom of the code in the comments,php file the problem switches to blog posts WITH comments have the issue instead of Blog posts without comments. It alternates.
it def seems to be comment related.
Another thing I did last night and Im not sure if this problem is related or not because I dont know if I caught it. Last night I important blog posts from blogger… I wonder if it is related to that.
lin it would be better to see the actual code your using for wordpress, like the page.php &/or index.php whatever is being used.
the source code only shows the html, we need to know where that html is being created.
for example, you know your search bar, the main html is made in the searchform.php file, but it is called within say the index.php file
but check your commentspopup.php does not have your footer & sidebar included
thats my problem I dunno where the actual problem is. I know when I mess around with the divs in the comments.php it changes the way things are messed up as I said but.. Ill look at the pages.php
here is the code for my comments.php to look at.
This post is password protected. Enter the password to view comments.
< ?php return; } } /* This variable is for alternating comment background */ $oddcomment = 'class="alt" '; ?>
< ?php if ($comments) : ?>
< ?php if ('open' == $post->comment_status) : ?>
< ?php if ( get_option('comment_registration') && !$user_ID ) : ?>
You must be /wp-login.php?redirect_to=< ?php echo urlencode(get_permalink()); ?>“>logged in to post a comment.
< ?php else : ?>
You must be logged in to reply to this topic.