Hey I am having an issue rendering “dynamic” text from a twitter feed on my theme. The feed it placed in my footer and I have no issues replacing static text but when using the a JQUERY plugin for showing feeds it fails to render any of the text pulled in.
I have tried adding many of the html tags to the cufon replace code but none worked for the dynamic text.
I am using a test code I got in a theme I purchased on Themeforest but this problem is so urgent and not really related to the theme but the general solution of rendering cufon on dynamic text so I hope you guys can help me.
Here is the test HTML :
<script src="js/cufon_ie9.js" type="text/javascript"></script>
<script src="js/ArdleysHand_500.font.js" type="text/javascript"></script>
<script src="js/Gotham_Narrow_Light_300.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h2', { fontFamily: 'ArdleysHand' });
Cufon.replace('#footer h3', { fontFamily: 'ArdleysHand' });
Cufon.replace('#tagline h4', { fontFamily: 'ArdleysHand' });
Cufon.replace('div#tweet-text', { fontFamily: 'ArdleysHand' });
</script>
<!--twitter widget -->
<div data-username="pixilcase" id="twitter">
<h3>Tweet Widget</h3>
<span>loading...</span>
<h4>line</h4>
<p>Loading latest tweet - follow us here <a href="http://www.twitter.com/pixilcase">@pixilcasw</a></p>
</div>
<!-- end twitter widget-->
Output HTML :
<h3><cufon class="cufon cufon-canvas" alt="Tweet " style="width: 41px; height: 14px;"><canvas height="21" width="56" style="width: 56px; height: 21px; top: 0px; left: -4px;"></canvas><cufontext>Tweet </cufontext></cufon><cufon class="cufon cufon-canvas" alt="Widget" style="width: 42px; height: 14px;"><canvas height="21" width="55" style="width: 55px; height: 21px; top: 0px; left: -4px;"></canvas><cufontext>Widget</cufontext></cufon></h3> <span><div class="tweet-created_at"><a href="http://www.twitter.com/pixilcase/status/100596048619249660">6 days ago</a></div></span> <h4>line</h4> <p><div class="tweet-text"><a href="http://twitter.com/Eleven2" class="tweet-mention">@Eleven2</a> Sounds good, waiting patiently :)</div></p>The included files:
<script src="js/jquery-1.6.1.min.js" type="text/javascript"></script> <script src="js/twitter.js" type="text/javascript"></script>

Thx