Tagged: CONTACT FORM
Hi guys!
How can i add a pre-checked subscribe box to the contact form (i’m using Enfold’s built in contact form)
Hi Courtney!
Can you post a link to the page where you have the Enfold contact form?
Best regards,
Josue
Hi Courtney!
I didn’t find any subscribe checkbox in that form, please add the one you like to be pre-checked first so i can provide you the proper code.
Cheers!
Josue
Hi!
You can put a checkbox element in the Enfold built-in form – http://screencast.com/t/l0GeXttqgiJ
Cheers!
Josue
Beautiful, it’s there, *now if we can make it pre-checked that would be amazing
Hi,
Try adding this at the very end of your theme functions.php file:
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery("#avia_click_here_to_receive_free_1").prop('checked', true);
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Regards,
Josue
Hey!
As you are using a child theme you can use a child theme functions.php (if there is no functions.php, create it at the root of the child theme directory).
Cheers!
Josue
Okay, thank you :)
You are welcome Courtney, always glad to help :)
Regards,
Josue