我想在我的wordpress文章评论中的评论表单中添加验证,但我找不到一种方法来更改提交表单(这样我就可以在评论帖子提交时验证它)。我发现了一个为用户登录添加验证码的,所以我把它添加到了我的评论表单中。
我基本上只在我的评论表单中添加了短代码
function mytheme_image_captcha( $args ){
// Adds an argument to the shortcode to record the type of form (Contact us, Request a Visit, Refer a Friend...) - [fuel-spam-guard
我已经安装了隐形验证码的联系表单7(由Mihai Chelaru编写),
每当我提交表单时,我都会收到一个橙色框错误消息:“试图发送您的消息时出错。请稍后再试。”
我也尝试了用v2和v3配置Contact form 7,仍然得到橙色框,
我在JS输出中看到错误:
The script from “https://x.ca/recaptcha/api.js?onload=renderInvisibleReCaptcha&render=explicit” was loaded even though its MIME type (“text/html”) is not a valid Ja
我需要使用新的谷歌“无验证码”reCaptcha在前端Woocommerce注册表单页面。
我在</ head >标记前插入了以下代码:
<script src='https://www.google.com/recaptcha/api.js'></script>
在文件“woocommerce\myaccount\ form -login.php”中有一个内部表单选项卡:
<div class="g-recaptcha" data-sitekey="xxxxxxxxx MY ID xxxxxxxxx"&