Hi,
thanks for your post, and sorry for the trouble.
The reason for that is a JavaScript error by another piece of JavaScript code on the page:
$(".button").click(function() {
$(".show-before-submit").css("display","none");
});
Due to how WordPress loads the jQuery library, this should be written as
jQuery(".button").click(function() {
jQuery(".show-before-submit").css("display","none");
});
Regards,
Tobias
Thanks Tobias.
I can’t seem to find where the code is coming from. Do you know where it is or how to override it (functions.php etc)?
Thanks,
Laura
Hi Laura,
it seems to be coming from some sort of contact form, but I don’t know if it’s from a plugin or maybe your theme.
Regards,
Tobias
Think it’s coming from the theme. Do you know if there is a way to override it in the functions.php in my child theme?
Thanks,
Laura
Hi Laura,
no, I don’t think it’s possible to override it. You’d need to modify the JavaScript code in whatever theme file it’s defined in.
Regards,
Tobias