Skip to main content
20 events
when toggle format what by license comment
Apr 18, 2016 at 7:27 vote accept Kevin Mamaqi
Apr 16, 2016 at 8:42 answer added Kevin Mamaqi timeline score: 0
Apr 15, 2016 at 11:31 comment added juz in the inspector you have multiple tabs.. there should be a tab called source.. in there it allows you find loaded javascript files and to add breakpoints in source to debug whether a line is run/hit.. the tab could be named differently depending on which browser you are using
Apr 15, 2016 at 11:24 comment added Kevin Mamaqi @juz I don't understand. Could you explain it a bit more?
Apr 15, 2016 at 10:49 comment added juz while you have the inspector, you can add breakpoints in both the document ready and the click event.. does it hit any breakpoints?
Apr 15, 2016 at 10:37 comment added Kevin Mamaqi Hello @juz, the file is loaded because this part of code (if ($("body").hasClass("page-id-64")) { $('.tab-content').addClass('col-sm-9'); $('#custom-tabs-0').tabCollapse(); } )is working fine and I can find it with the inspector.
Apr 15, 2016 at 10:35 comment added juz tried renaming the register script name with something else (i.e not theme-js)? Is the js file loaded (you can find out in the browser inspector)?
Apr 15, 2016 at 10:31 comment added Kevin Mamaqi Hello again @MarkKaplun, I've solved the wp.customize problem, I was loading it in the wrong file/moment. Now I don't have any JS error, but again, the script doesn't load.
Apr 15, 2016 at 10:29 history edited Kevin Mamaqi CC BY-SA 3.0
Removed and solved wp.customize js error
Apr 15, 2016 at 8:46 comment added Kevin Mamaqi Sorry, I missunderstood. The w.customize is related with the customizer, but not with my issue, or the code that I am trying to implement
Apr 15, 2016 at 8:46 comment added Mark Kaplun I guess your problem starts when you include JS that should be there only for the customizer and it gives you errors in other context
Apr 15, 2016 at 8:45 comment added Mark Kaplun if it is not related why do you call wp.customize
Apr 15, 2016 at 8:44 comment added Mark Kaplun anyway, you problem is probably the error which makes other things not to execute at all due to bailing out on the exception
Apr 15, 2016 at 8:44 comment added Kevin Mamaqi Not related at all
Apr 15, 2016 at 8:42 comment added Mark Kaplun how is your code related to the customizer?
Apr 15, 2016 at 8:39 comment added Kevin Mamaqi The code is supposed to pass the value from one button to another, as shown the linked example, but, when I load the code from WordPress nothing happens. Instead, when I write it on the console it works fine. I've checked for JS errors and I receive the following message related with the customizer: Uncaught TypeError: wp.customize is not a function.
Apr 15, 2016 at 8:39 history edited Kevin Mamaqi CC BY-SA 3.0
added 368 characters in body
Apr 15, 2016 at 8:35 comment added Mark Kaplun please define "won't run". Have you checked of JS errors?
Apr 15, 2016 at 8:29 history edited Kevin Mamaqi CC BY-SA 3.0
added 6733 characters in body
Apr 15, 2016 at 8:17 history asked Kevin Mamaqi CC BY-SA 3.0