rustypico
Member
Posted 1 year ago #
Hi there
am putting a simple backgound behind each post summary and have success when i insert it as a div in loop.php such as:
[Code moderated as per the Forum Rules. Please use the pastebin]
My problem is this... when i load the front page everything looks great, however, when i click a category or an archvie link on the sidebar, the sidebar moves far down the page and/or the blog post summarys get bunch up.
Does anyone know why adding a div in this way affects the categories and archive pages?
Thanks in advance.
rustypico
Member
Posted 1 year ago #
I should add that i have made twenty-ten into a child theme and have copied loop.php into my childtheme folder and made the above edit.
is that the </div> you added?
</div>
<?php endif; ?>
move it to after the <?php endif; ?>
First things first: verify that your HTML markup is valid, and that you don't have a stray DIV tag opening or closing where it shouldn't be. It looks like you're not closing div#post.
rustypico
Member
Posted 1 year ago #
Ahhhhh so simple... it worked a treat!
Muchos thanks Alchymyth!
And thanks for the superfast reply!!!