首页 文章

联系表格7的Wordpress验证码?

提问于
浏览
0

嗨,我正在使用联系表格7和真正简单的CAPTCHA,但它会引发以下验证错误 . 有没有办法来解决这个问题?或者是否有另一个插件或我可以将其输入到HTML中?

谢谢你的帮助

问候

朱迪

#  Line 261, Column 84: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag

…llenge_captcha-508" value="20073138" /><img alt="captcha" src="http://www…

✉

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 261, Column 243: document type does not allow element "img" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag

…/20073138.png" class="wpcf7-captcha-captcha-508" width="72" height="24" />
✉ 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 261, Column 248: document type does not allow element "br" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag …/20073138.png" class="wpcf7-captcha-captcha-508" width="72" height="24" />
✉ 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 262, Column 50: document type does not allow element "span" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag …="wpcf7-form-control-wrap captcha-508"><input type="text" name="captcha-508" v… ✉ 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>").

1 回答

  • 0

    插件论坛说要将此行添加到wp-config.php以阻止插入 <p> 标记,这看起来会解决一些验证问题,根据您的错误报告 .

    define( 'WPCF7_AUTOP', false );
    

    但也要修复你的其他错误,因为它们往往会滚雪球并导致其他验证错误:[Invalid]Markup Validation of artygirl.co.uk - W3C Markup Validator . 在验证报告中向下滚动以查看行号和源代码 .

相关问题