I have succesfully loaded fitText in my wordpress installation. But for some reason it only executes on the first instance in a loop, ie. if I have a loop generating two(or more) headings with the same ID (#fittext1) to the h1-element it only makes the first heading flexible.
This is how I load the fitText script in my functions.php
In this specific case there are two posts headings generated by the loop and as I said earlier fitText works just fine but only on the first post heading.
How do I get it to work on all headings marked with #fittext1?
I have succesfully loaded fitText in my wordpress installation. But for some reason it only executes on the first instance in a loop, ie. if I have a loop generating two(or more) headings with the same ID (#fittext1) to the h1-element it only makes the first heading flexible.
This is how I load the fitText script in my functions.php
In the jquery.fittext-activate.js I have put the following code:
Then I place the following in a loop in page template:
In this specific case there are two posts headings generated by the loop and as I said earlier fitText works just fine but only on the first post heading.
How do I get it to work on all headings marked with #fittext1?