Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can't find variable: jQuery


  • Shmoo
    Participant

    @macpresss

    I get this JS Error after activation.

    jQuery Error

    Everything is working except the Ajax stuff ( sorting – Groups, Activity … )
    My starters theme is Foundation For WordPress – it’s a Zurbs Foundation 4.
    http://fwp.drewsymo.com

    I know Foundation uses Zepto.js instead of jQuery.js when a browser supports it but is this the real problem of this Error?
    I think I have to change the name of the JS Variable but how does it work ?

Viewing 1 replies (of 1 total)

  • r-a-y
    Keymaster

    @r-a-y

    BuddyPress utilizes WordPress’ version of jQuery.

    But I can see how this would be a problem for custom themes relying on something like Zepto.

    You can try adding some javascript directly after the Zepto library is called to declare the jQuery variable as an instance of Zepto.

    Something like:

    <script type="text/javascript">
    if ( typeof jQuery == "undefined" )
    	var jQuery = Zepto;
    </script>
    

    Not sure if that will work at all, since Zepto is a lightweight-alternative to jQuery, but hopefully that gives you an idea.

Viewing 1 replies (of 1 total)
  • The topic ‘Can't find variable: jQuery’ is closed to new replies.
Skip to toolbar