Untitled

mail@pastecode.io avatar
unknown
plain_text
25 days ago
502 B
1
Indexable
Never
This part of code handle rendering Cloudflare Turnstile within each form. 
<code>
<div class="cf-turnstile" data-sitekey="'.cloudflare_key()[0].'" ></div>
</code>

To customize its appearance with either a light or dark theme, simply include the data-theme attribute:
<code>
//for light theme:
<div class="cf-turnstile" data-sitekey="'.cloudflare_key()[0].'" data-theme="light"></div>

//for dark theme:
<div class="cf-turnstile" data-sitekey="'.cloudflare_key()[0].'" data-theme="dark"></div>

</code>
Leave a Comment