Forums

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

Home Forums Back End help with a strange problem in wordpress

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 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?

    #55889
    apostrophe
    Participant

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

    #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. :)

    #55916
    apostrophe
    Participant

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

    #55924
    apostrophe
    Participant

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

    #55955
    apostrophe
    Participant

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

    #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:
    #55973
    apostrophe
    Participant

    Cool!
    Oh well, we got there in the end. :D

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