Validation Errors
-
This is the first in a series of validation errors I’m getting with a theme that I’ve developed. I’ll add more in this thread as I come to them.
# Error Line 164, Column 23: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div class="more-link">Continue reading »</div> ? The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). # Error Line 165, Column 3: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <p></a></p> ? The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Thiss seems to be being genrated byt the following code in the index.php of my theme:
<div class="entry-content"> <?php the_content( __( '<div class="more-link">Continue reading »</div>', 'your-theme' ) ); ?><!-- .more-link --> <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'your-theme' ) . '&after=</div>') ?> </div><!-- .entry-content -->
I can’t seem to track down the closing tag that seems to cause the second validation problem.
any suggestions gratefully recieved.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Validation Errors’ is closed to new replies.