What is the name of the domain?
What is the issue you’re encountering
duplicated widget
What are the steps to reproduce the issue?
https://woodcy.com/my-account/
you can visit and see the duplicated widgets.
duplicated widget
https://woodcy.com/my-account/
you can visit and see the duplicated widgets.
This must be your implementation, likely an incorrect API call. I have Turnstile on dozens of client sites and don’t have duplicated widgets on a single one of them.
I recommend contacting the author of the WordPress plugin you’re using to add Turnstile to your WordPress site.
Good luck!
Can you please write to browser how many people have same problem?
I am using simply other people are using AISO. everybody have same problem. I will contact with author of plugin.
May I ask does it happen to you even with other plugin(s)?
i tried by Simple Cloudflare Turnstile and [All-In-One Security (AIOS).
the result was same. i tried to use by “wordfence” but unfortunately it s just working by google caphta. do you have any advise to me ? i will be so pleased.
i tired this your advise. it is totally not working. turnstile is not visibile. other plugins are also has different kind of problems. only this "simply cloudflare turnsitle is working but duplicated. so interesting really.
i am sorry. i mean “i tried”. not tired.
Have you considered splitting your page, to separate the login vs register form?
Wonder if it does happen again then as well?
You’ve also got it 3rd time shown on the fotter for “Subscribe Now” newsletter form.
That’s way too much.
With the code here:
You’re trying to check for any Turnstile Widget, remove it, the re-render?
Manually codded or via plugin?
When the page loads, the code checks for the element with the ID cf-turnstile-woo-login-172018188? If that element is found and is empty, it removes any existing Turnstile widget from it and then renders a new one, right?
However, if there was already a Turnstile widget rendered inside that element, calling turnstile.remove() should remove it first, but if the element is not empty (i.e., it already has a Turnstile widget rendered), the code might skip the removal and attempt to render a second widget in the same place, resulting in two widgets as you have
Something like below could help?:
document.addEventListener("DOMContentLoaded", function() {
var e = document.getElementById("cf-turnstile-woo-login-172018188");
if (e) {
turnstile.remove("#cf-turnstile-woo-login-172018188"); // Remove any existing widget
turnstile.render("#cf-turnstile-woo-login-172018188", {
sitekey: "0x4AAAAAAA56uFt1D_6O7wgF"
}); // Render a new widget
}
});
on the footer, it s code by famous newsletter plugin brevo. i am creating a newsletter form to the footer and plugin ask me for captha option. when i click to “yes”, it s adding this code automaticly to the form:
form has a short code: [sibwp_form id=1] that shortcode is on my footer. I did not write any codes, so i think i did not make sth wrong.about login page, i am using " **Simple Cloudflare Turnstile"
that wordpress plugin is the top turnstile plugin. i also tried others but other plugins have different kind of big problems. these are not working. this one is working well but duplicated as you see on my login page: https://woodcy.com/my-account/
there is no widget. i’m not using any widgets. if i could have any idea about codes, i would try your advice but unfortunately i dont have any idea about these codes which you wrote me.