Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can't find variable: jQuery

  • Avatar of Shmoo
    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)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @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)

You must be logged in to reply to this topic.