 i use the fantastic twitter for wordpress plugin on my website sometimes though twitter decides that it doesnt want to make my tweets available the plugin has accounted for this and it displays no public twitter messages when this happens that kinda sucks though its definitely nice that the plugin doesnt throw an error but i really dont want that message displayed on my site so whats the solution jquery of course when the tweet comes through here is the markup that is displayed on my site when a tweet comes through successfully div id= twittercontainer a class= twitter link href= http twitter com davist11 status 1200405534 i feel like im in an episode of seinfeld right now a div when the tweet doesnt come through this is what you end up with div id= twittercontainer no public twitter messages div the jquery my thinking is that i will check the contents of div twittercontainer to see if it is no public twitter messages if it is i think it would be useful to replace that text with a link to my twitter account with a message telling people to follow me so first lets execute the jquery code when the document is loaded $ document ready function next we are going to check and see if the contents of div twittercontainer is no public twitter messages $ document ready function strongif jquery trim $ div twittercontainer text == no public twitter messages strong finally lets just replace this text with a link to my twitter feed $ document ready function if jquery trim $ div twittercontainer text == no public twitter messages strong$ div twittercontainer html a href= http twitter com davist11 class= twitter link follow me on twitter a strong thats it this is just another example of how i have used jquery to improve a wordpress plugin on my site you can see this in action on my site or take a look at the demo see demo 