Title: Javascript bug (header, footer)
Last modified: September 21, 2016

---

# Javascript bug (header, footer)

 *  [umutc](https://wordpress.org/support/users/umutc/)
 * (@umutc)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/javascript-bug-header-footer/)
 * Hello there,
 * after the upgrade from 1.4.6.1 the popups doesnt work anymore when i put them
   in to the header or footer in the very popular “Sydney Theme”. I have found out
   that the bug caused by the “public-min.js”
 * The location which causes the problem in the “public-min.js” (v. 1.6.0.1) is:
 * b=function(){o&&clearTimeout(o),o=window.setTimeout(function(){var t=$(window).
   scrollTop(),e=t+u>=v;e?(p||$(window).unbind(“scroll”,b),s(d,!0,!1)):s(d,!1,!1)},
   100)},w=function(){o&&clearTimeout(o),o=window.setTimeout(function(){s(d,!0,!
   1)},1e3*h)},_=n(“spu_box_”+d);if((void 0==_||””==_||f&&a)&&(“seconds”==i&&w(),”
   percentage”==i&&($(window).bind(“scroll”,b),b()),window.location.hash&&window.
   location.hash.length>0)){var x=window.location.hash,E;x.substring(1)===e.attr(“
   id”)&&setTimeout(function(){s(d,!0,!1)},100)}e.on(“click”,”.spu-close-popup”,
   function(){s(d,!1,!1),”percentage”==i&&$(window).unbind(“scroll”,b)}),$(document.
   body).on(“click”,’a[href=”#spu-‘+d+'”], .spu-open-‘+d,function(t){t.preventDefault(),
   s(d,!0,!1)}),$(‘a[href=”#spu-‘+d+'”], .spu-open-‘+d).css(“cursor”,”pointer”).
   addClass(“spu-clickable”),e.find(“.gform_wrapper
 * where in v.1.4.6.1 (“public-min.js”) it did work
 * w=function(){o&&clearTimeout(o),o=window.setTimeout(function(){var t=$(window).
   scrollTop(),e=t+u>=v;e?(p||$(window).unbind(“scroll”,w),s(d,!0,!1)):s(d,!1,!1)},
   100)},b=function(){o&&clearTimeout(o),o=window.setTimeout(function(){s(d,!0,!
   1)},1e3*h)},_=n(“spu_box_”+d);if((void 0==_||””==_||f&&a)&&(“seconds”==i&&b(),”
   percentage”==i&&($(window).bind(“scroll”,w),w()),window.location.hash&&window.
   location.hash.length>0)){var x=window.location.hash,E;x.substring(1)===e.attr(“
   id”)&&setTimeout(function(){s(d,!0,!1)},100)}e.on(“click”,”.spu-close-popup”,
   function(){s(d,!1,!1),”percentage”==i&&$(window).unbind(“scroll”,w)}),$(‘a[href
   =”#spu-‘+d+'”]’).on(“click”,function(t){t.preventDefault(),s(d,!0,!1)}).css(“
   cursor”,”pointer”).addClass(“spu-clickable”),e.find(“.gform_wrappe
 * maybe its possible to fix that to make it compatible with all other themes and
   prevent this issue.
 * You can check out an example of this issue here: [http://www.schneidereiberlin.de/](http://www.schneidereiberlin.de/)
 * Look at the footer
    -  This topic was modified 9 years, 7 months ago by [umutc](https://wordpress.org/support/users/umutc/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/javascript-bug-header-footer/#post-8221516)
 * Hi [@umutc](https://wordpress.org/support/users/umutc/), could you please enable
   debug mode so we can take a look to the uncompressed version of the javascript?
 * Thanks
 *  Thread Starter [umutc](https://wordpress.org/support/users/umutc/)
 * (@umutc)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/javascript-bug-header-footer/#post-8229911)
 * I made a picture where u can see the exact line which causes the problem.
 * The red marked is the non function version of 1.6.0.1 and the green is the functional
   version of 1.4.6.1
 * [http://img4host.net/upload/2813074157eba47dda5ee.png](http://img4host.net/upload/2813074157eba47dda5ee.png)
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/javascript-bug-header-footer/#post-8230385)
 * Looks like the trigger event is removed. Try using the trigger class. Simple 
   change that url to this:
 * `<a href="#" class="spu-open-71" style="cursor: pointer;"><font color="red">THIS
   POPUP DOESNT WORK</font></a>`

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Javascript bug (header, footer)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/popups_efeef0.svg)
 * [Popups - WordPress Popup](https://wordpress.org/plugins/popups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups/)
 * [Active Topics](https://wordpress.org/support/plugin/popups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Damian](https://wordpress.org/support/users/timersys/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/javascript-bug-header-footer/#post-8230385)
 * Status: not resolved