Skip to main content

Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #24509
    cybershot
    Participant

    I have been customizing a theme in wordpress. Been building it on my computer using wamp. I put in some javascript and jquery and this runs fine on my computer. I uploaded all the files and the jquery stops working. So I delete the theme from the online site, re upload and still doesn’t work. So I download everything from online and put it back on my computer. I put it in another directory that I have wordpress installed and change that site on my computer to the theme. the jquery works. I have come to the conclusion that something online is stopping my jquery from working. I don’t know what it is. I am calling the script like this

    Code:

    Any ideas?

    #55887
    apostrophe
    Participant

    On your online version, if you "view source" is the path to your jQuery file correct?

    #55888
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    yes, the path was correct. that’s the weird thing

    #55889
    apostrophe
    Participant

    How are you calling the jQuery library?
    Could you post a link?

    #55904
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    the same as above

    the exact same way as on my computer through wamp, it works locally but not online. exact same files

    #55901
    apostrophe
    Participant

    What does firebug say?

    We can play this game all week, without a link it’s just one guess at a time. :)

    #55914
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    sorry, wrong link

    http://www.wilsonwrites.com

    there is a tabbed box on the right that isn’t working

    #55916
    apostrophe
    Participant

    In your tabs.js try replacing each instance of ‘$’ with ‘jQuery’.

    #55919
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    didn’t work

    #55921
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    I think it has something to do with wp_head() and the includes folder. It looks like the entire jquery library is included in the includes folder.

    #55924
    apostrophe
    Participant

    Not ‘jquery’ but ‘jQuery’. Note the uppercase Q.

    #55952
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    that didn’t work either

    #55955
    apostrophe
    Participant

    As far as I can see, tabs.js isn’t there at all now.

    #55956
    cybershot
    Participant

    This reply has been reported for inappropriate content.

    I have been messing with it a lot. trying many new things. I have removed the code and put it back in. I am sure it has got to be something with the wp_head. nothing seems to work. the answers I have found on google don’t work either.

    #55967
    apostrophe
    Participant

    You may have put the file back but you are not linking to it in the head.
    Incidentally, IMHO the best way to include the jQuery library is to use Google’s hosted version like this:

    Code:
Viewing 15 posts - 1 through 15 (of 17 total)
  • The forum ‘Back End’ is closed to new topics and replies.