jQuery coding?
-
Hi,
I installed a plugin called Calculated Fields Form from the WordPress Repository. I was having issues with one of the features (have a slider bar for calculator). I raised a ticket with the developer and i was told the following
I’ve encountered some uncaught javascript errors in the theme active in your website.
You’ve upgraded WordPress version in the website to the 4.5.x, that includes the jQuery v1.12.3, but the theme active in your website does not support this version of jQuery totally.
For example, the line of code below, that belongs to the javascript file (http://www.uk-psc.com/wp-content/themes/onepress/assets/js/theme.js ), is incorrect:
jQuery(‘.home #site-navigation li a[href*=#]’).on(‘click’, function(event){
it must use the double quotes as follows:
jQuery(‘.home #site-navigation li a[href*=”#”]’).on(‘click’, function(event){
The same issue appears multiple times in this javascript file. You should contact to the theme’s developers, because the same error may be included in other files of the theme.
Could you help?
Thanks
Z
The topic ‘jQuery coding?’ is closed to new replies.
