davatron5000 / FitText.js

A jQuery plugin for inflating web type
http://fittextjs.com
6.76k stars 1.39k forks source link

fittext.js not working on Thesis/Wordpress #10

Closed emilyartz closed 11 years ago

emilyartz commented 12 years ago

Hello,

My problem is very likely caused by something I've overlooked, or my general lack of jquery expertise... but I just can't seem to get fittext.js to work in my Thesis + Wordpress site.

Granted, this is the first responsive site I've built, so I'm still working on things... but I think I've got everything in place for this work.

The site is zeehivecreative.com and the text I want to resize is on the homepage 'create buzz. make honey.'

I've got my script in my (thanks to Thesis' easy script implementation, and I'm pointing to the correct

(i.e. #home_tagline)

I've deactivated other plugins that are using jquery -- those aren't affecting it.

All other elements on the page are successfully 'responsive' to resizing the browser... hmmmm.

What obvious thing am I overlooking?

Thanks in advance for anyone's help with what I am sure is an awesome plugin -- I can't wait to see it in action!

Emily

emilyartz commented 12 years ago

errr... I mean I have my script in my head and I'm pointing to the correct div

davatron5000 commented 12 years ago

I'm not familiar with the javascript side of Thesis, but with WordPress, one common jQuery gotcha is that you kind of need to avoid the dollar sign. Try using something like:

jQuery(".entry-title").fitText();

Beyond that suggestion, I'd need to see either a JSBin or a link to the code in question. Let me know how it turns out.

sethburtonhall commented 11 years ago

Yes, finally. jQuery instead of $.