tpreclik
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Hey, yesterday I just launched websites https://rcpifpaf.cz/ with email newsletter widget and in my case it’s not working when in sidebar and in footer. Only place where it’s working correctly is when I enable newsletter in Appearance ->Adjust -> Basic Settings ->Newsletter settings.
For each section I have newsletter with different id. To make sure it’s all set up correctly I tried to use the working one on different places (enabled one at time only) and result was same.
To check what’s going on I used Inspect tool and find out, that in those two not working cases there seems to be some problem in JS (not sure if related).
Error description: Uncaught TypeError: $ is not a function
-- error appears on first line $(document).ready(function() { $(document).on("submit", "form#blossomthemes-email-newsletter-848", function(e) { e.preventDefault(); $(".subscribe-submit-848").attr("disabled", "disabled"); var email = $(".subscribe-email-848").val(); var fname = $(".subscribe-fname-848").val(); var sid = 848; var nonce = $("#bten_subscription_nonce_848").val(); $.ajax({ type: "post", dataType: "json", url: bten_ajax_data.ajaxurl, data: { action: "subscription_response", email: email, fname: fname, sid: sid, nonce: nonce }, beforeSend: function() { $("#loader-848").fadeIn(500) }, success: function(response) { $(".subscribe-submit-848").attr("disabled", "disabled"); if (response.type === "success") { $("#bten-response-848 span").html(response.message); $("#bten-response-848").fadeIn("slow").delay("3000").fadeOut("3000", function() { $(".subscribe-submit-848").removeAttr("disabled", "disabled"); $("form#blossomthemes-email-newsletter-848").find("input[type=text]").val("") }) } else { $("#bten-response-848 span").html(response.message); $("#bten-response-848").fadeIn("slow").delay("3000").fadeOut("3000", function() { $(".subscribe-submit-848").removeAttr("disabled", "disabled"); $("form#blossomthemes-email-newsletter-848").find("input[type=text]").val("") }) } }, complete: function() { $("#loader-848").fadeOut(500) } }) }) });
Viewing 1 replies (of 1 total)