• Resolved WHiSPER

    (@apc_whisper)


    Hi,

    Recently I’ve designed a WordPress theme with different jQuery effects. When I run the theme on my local host server it’s okay, but last night when I installed the theme on server, there was no jQuery effect!

    I’m just confused with this problem. I’ve checked everything and really have no idea why this happened? Any suggestion? Help?

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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Does the browser console reveal anything?

    Thread Starter WHiSPER

    (@apc_whisper)

    No, nothing!
    Here is the theme if you like to take a look please:
    subdb

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    When developing in JavaScript, you ought to use a console feature in the browser. For example, Google Chrome’ Inspect Element or Firefox’s Firebug.

    The console reveals this;

    Failed to load resource: the server responded with a status of 404 (Not Found) https://subdb.ir/wp-content/themes/subdb/jquery/jquery1.3.2.js
    Uncaught ReferenceError: $ is not defined subdb.ir:18
    Uncaught ReferenceError: jQuery is not defined jquery.tipTip.js:191
    Uncaught ReferenceError: jQuery is not defined jquery.tipTip.minified.js:21
    Uncaught ReferenceError: $ is not defined subdb.ir:52
    Uncaught ReferenceError: $ is not defined subdb.ir:244
    Uncaught ReferenceError: $ is not defined subdb.ir:284

    Remember, when developing jQuery in WordPress, you need to first use jQuery no-conflict wrappers.
    E.g

    jQuery(this).function($){
     $('now-you-can-use-dollar-signs');
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘jQuery problems with my theme’ is closed to new replies.