Forums

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

Home Forums JavaScript Tabs not working

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #146596
    papdronning
    Participant

    Warning, I have no .js skills.

    But the tabs at http://www.marensblog.dk (right sidebar) aren’t working. It appears to be a js thing. Recently the version of js loaded with the site was changed to make it Jigoshop compatible. From 1.6.1 to 1.8.3. Mayby this is what caused the tabs to break?

    Any ideas how to fix this?

    #146598
    Chromawoods
    Participant

    First of all, when you say “version of js” you really mean “version of jq, or jQuery”. jQuery is built on JS but it’s weird to say “version of js” because that’s a whole other deal. But, maybe it was just a typo. :)

    Yep, the jQuery dollar variable ($) is undefined on your site. Taking a closer look, it seems that the jQuery script that you have included is not identical to the one on, for example, http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js

    Look at the very bottom of your jQuery file http://marensblog.dk/wp-includes/js/jquery/jquery.js That last line that says

    jQuery.noConflict();

    Did you add this line? It is what’s causing these errors, because it tells jQuery to “forget” about the $ variable by setting it to whatever value it had before jQuery was loaded, in your case undefined.

    Long story short: Remove that last line from your jquery.js file.

    #146653
    papdronning
    Participant

    Thank you! It worked – awesome.

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