Hi, I'm having a problem where text and links are being arbitrarily cutoff from long WP posts I make. So, my first stab at it was to run the HTML validator. It found an error where there was an extra closing DIV tag. I took the source code output and did a count of starting and closing DIV tags to confirm it. It's been a while since I ran the validator, so I can't readily figure out which </div> tag is extra. It's driving me nuts to figure out which </div> tag is extraneous. I don't want to just take out any random tag either. What I did is take the smallest page in my site to help narrow it down. The url is: http://www.trendyshoeshop.com/our-exclusive-coupon-codes/ Any of the gurus out there have any thoughts on how I can narrow down which </div> is the extra one and safe to remove? Are there any tools which can help me with this puzzle? Many Thanks George
I think it's the </div> right before </body> Well, when I remove that one the site validates. To check I used a program called NotePad++, you can "click on the plus/minus sign and it will hide all of the elements inside a element". That probably didn't sound very clear, hard to explain so go and check it out.
nicangeli, that just gets rid of the extra div, That does not neccisarily close the dive at the right in time. I'm looking through the code now, I'll post if I get something. edit- looking at the page, I can't see the break you're talking about.. Odds are, the extra break is somewhere in your comments-template.
Usually I would agree with you, but on this occasion I can't find where else the unclosed div is supposed to be. Proper indentation would solve this in the future.
Hi, Niangeli, I agree about the indentation point, but I'm using Wordpress so I'm hoping that's applicable. I appreciate your feedback. I hope there's no side effects if I remove the wrong </div> tag. unr., I tend to agree that it's not necessarily the last </div> before </body>. I don't want to have unintended side effects by taking out the wrong tag even though Validator presents no errors. Please let me know if you can find it Please keep me posted & Many Thanks! George
gmr324, I'd be able to look better if you could show me where it breaks. When I view the page, I see no break visually. Where is it you're seeing a break in your long content?
Hi unr., I removed the very last </div> before the body tag and it did clear the error messages with Validator. However, clearing the code errors did not clear up the content cutoff problem: Please refer to this thread for a description of that issue: http://forums.digitalpoint.com/showthread.php?t=978885 Many Thanks George
I'll check into it some more in a bit. edit -- I still can't see what you're talking about. If I take your source, and add in a closing div at the end, I get no errors still. Can you show me a screenshot or something? I'm not sure where this is happening at all.
Check in your Wordpress post loop to make sure you don't have an opened tag that generates at every post. It's a bit harder for us to attempt and find the problem without seeing the un-rendered PHP.