milohuang / reverie

Reverie is a versatile HTML5 responsive WordPress framework based on ZURB's Foundation.
http://theakiba.com/reverie/
MIT License
918 stars 196 forks source link

Reverie not working with Wordpress 3.6 #217

Open oudin opened 11 years ago

oudin commented 11 years ago

Hi:

I upgraded to Wordpress 3.6 and I'm now getting the following error

[18:08:29.113] TypeError: jQuery(...).foundation is not a function @ http://123.123.123.134/sitename/:673

I'm now using Reverie 4.0.0 theme with a child theme

I attempted to update to Reverie 4.3.1 however I was still got the same "not a function" error and the drop down menu stopped working so I reverted back to 4.0.0.

Any help on how I can solve this

batfan commented 11 years ago

I'm having the same issue. The call to load the Foundation scripts is being loaded before the actual Foundation library is being loaded.

I had to comment out the reference to foundation.min.js in 'theme-folder/lib/clean.php' and manually add it in footer.php.

<script src="<?php echo get_template_directory_uri(); ?>/js/foundation.min.js"></script>

<script>
    (function($) {
              $(document).foundation();
    })(jQuery);
</script>
batfan commented 10 years ago

@milohuang Are there any plans to fix this issue? I'm still having to do this step in order to get the theme to work, on new builds.