javascript - Error when using jQuery with WordPress theme -
I have purchased a WordPress theme and have started customizing it. One aspect of this topic is that for my life, I can not understand why it is redirecting to a page called "Undefined".
The site in question is.
! Function (A, B) {'Object' == Type Module & amp; Amp; 'Object' == Type Module Exports? Module.exports = a.document? B (A,! 0): Function (A) {If (! A document) throw a new error ('jQuery requires a window with a document'); Return B (A)}: B (A)} ('undefined'! = Type window window: this, function (a, b) {var c = [], d = c.slice, e = c.concat, f = C.push, g = c.indexOf, h = {}, i = h.toString, j = h.hasOwnProperty, k = {}, l = '1.11.1', m = function (a, b) { Back to top m.fn.init (A, B)} is an envelope icon that leaves a section to insert your e-mail using Javascript Immediately after clicking, you are redirected to a page named "undefined" and the firebug is a Root spits:
error ("requires a window with a document for jQuery");
a data toggle = "fall" class = "collapsed collapse" data-target = "# newsletter" & gt; & lt; i class = "Icon-envelope-alt"> gt; & lt; / i & gt; & lt; / A & gt; & Lt; / Div & gt; is created:
& lt; Div id = "fall-trigger" & gt; & Lt; Span data-toggle = "fall" class = "collapse collapsed" data-target = "# newsletter" & gt; & Lt; I class = "icon-envelope-alt" & gt; & Lt; / I & gt; & Lt; / Span & gt; & Lt; / Div & gt; Alternatively, find the Action Handler JS function and event parameter and event.preventDefault (); At the top of the function:
$ ('your_selector'). Click (function (event) {event.preventDefault (); ...})
Comments
Post a Comment