• Resolved trademark2k6

    (@trademark2k6)


    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Did you recently upgrade Onepress? The comments from the developer do not match the file in question: http://www.uk-psc.com/wp-content/themes/onepress/assets/js/theme.js

    For example, try searching for the following inside that file:

    a[href*=#]'

    It does not return any results.

    Thread Starter trademark2k6

    (@trademark2k6)

    Hi Andrew,

    Yes, after the comments posted by the developer, i noticed OnePress had a new version. So hoping it fixes my issues, I upgraded OnePress, but it didnt seem to fix my problem…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you show us the page you’re having an issue with?

    Thread Starter trademark2k6

    (@trademark2k6)

    Sure,
    http://www.uk-psc.com/score/

    The page loads fine on a desktop and i can use the AGE slider fine. But when on mobile, the slider does not work. it loads properly and looks fine, but doesn’t respond to touch. Tested on a iphone 6s.

    When i load the default wp theme, it works fine.

    Kind Regards
    Z

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This is no longer a jQuery issue with the theme, I would return the conversation back to your plugin dev

    congthien

    (@congthien)

    Hi,

    Please update the latest OnePress theme, we have fixed this issue already!

    Kind regards.

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

The topic ‘jQuery coding?’ is closed to new replies.