Newbie Question-Where to add code snippet for reCAPTCHA

Please,
Do I add this snippet in the child theme php functions doc through the editor? Do you have a sample?
James.

Hello @vxrworks,

Thanks for asking. :slight_smile:

You can add following code in child theme function.php file:

function load_custom_js() {
	wp_enqueue_script( 'recaptcha', 'https://www.google.com/recaptcha/api.js' );
	
}
add_action( 'wp_enqueue_scripts', 'load_custom_js' );  

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.