Image wrapping creates invalid markup
-
I’ve been cleaning up some minor issues on my site and came across this one that I can’t get to the bottom of. The validator says correctly that div tags can’t go inside a href tags, but that’s what’s happening when a post is saved. Following is an example:
<a href="https://www.richardwwood.com/wp-content/uploads/2010/05/honey-jar1.png"> <div class='image_wrap alignleft'><div class='wp-caption'><img src="https://www.richardwwood.com/wp-content/uploads/2010/05/honey-jar1.png" width="325" height="289" alt="Honey jar" title="" /></div></div> </a>
There was a function in my functions.php file for this, which I have disabled so that the default gets used, but it appears there’s no difference.
Thanks for any help
- The topic ‘Image wrapping creates invalid markup’ is closed to new replies.