gridwax icon indicating copy to clipboard operation
gridwax copied to clipboard

TypeError: $ is not a function this.pageWidth = $(document).width();

Open stewsnooze opened this issue 11 years ago • 4 comments

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)

stewsnooze avatar Jan 26 '14 15:01 stewsnooze

Same issue for me. Quite common with some WordPress themes

AttractMore avatar Feb 22 '14 13:02 AttractMore

This is definitely a bummer. I'll take a look at this.

I'm also open to pull requests. ;)

itsthatguy avatar Feb 25 '14 16:02 itsthatguy

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

AttractMore avatar Feb 25 '14 17:02 AttractMore

This should be fixed by this line in this pull request: https://github.com/itsthatguy/gridwax/pull/16/files#diff-27f1e46562064589274b59eb5bd50bc8R337

radum avatar Mar 04 '15 10:03 radum