Basically. I'm building a Tumblr theme with flipping panels based on a site I made for a hackathon. Tumblr will only give me the contents of a text post as a massive string. But I want it truncated to like 200 characters so the contents will all fit on one "panel".
(The URL for the theme at the moment is http://jackwantshugs.tumblr.com/ and the text post is the one on the top left.)
I'm not asking how to simply truncate a post. I want to know how to just include a script at the bottom of the document that will truncate all posts with the class "textposttext" Can anyone help?