gridwax
gridwax copied to clipboard
TypeError: $ is not a function this.pageWidth = $(document).width();
On the site I'm working on jQuery is not available on $, it is available on jQuery. I did see that you have code to pull in jQuery but that isn't working for me. Drupal on all sites, for instance, keeps jQuery away from $ and on jQuery
TypeError: $ is not a function
this.pageWidth = $(document).width();
gridwax.js (line 32)
Same issue for me. Quite common with some WordPress themes
This is definitely a bummer. I'll take a look at this.
I'm also open to pull requests. ;)
It would be great if you could fix this (and you are much more qualified than me to do so). Vertical rhythm is important and this tool certainly helps to make sure it's all set up properly so would love to use it on these sites where $ is not available.
Thanks
This should be fixed by this line in this pull request: https://github.com/itsthatguy/gridwax/pull/16/files#diff-27f1e46562064589274b59eb5bd50bc8R337