Latest Tweets with Cookies

Posted on March 26th, 2011

We can display the latest tweets by showing/Hiding Cookies. Its pretty easy using the below the three steps.

Step1:

1.       Go to the SimpleTwitter Settings Page(http://wordpress.org/extend/plugins/simpletwitter/)

  1. Enter your Twitter name and cache time
  2. Save Settings

Step2:

<div>
        <div>
               <a rel="nofollow" href="http://twitter.com/perishable">
                       <?php if (function_exists('get_twitter_msg')) { get_twitter_msg(); } ?>
               </a> 
               <span><a href="#">hide</a></span>
        </div>
</div>

Step3:

div#tweet-link {
        background: url(http://example.com/images/twitter-bird.png) no-repeat 0 8px;
        display: none; overflow: hidden; line-height: 1.6; 
        }
div#tweet-link div {
        padding: 5px 5px 5px 45px;
        }
a#tweet-hide {
        background-color: #ebebe3;
        text-transform: uppercase;
        border: 1px solid #827960;
         -webkit-border-radius: 5px;
         -khtml-border-radius: 5px;    
         -moz-border-radius: 5px;
        border-radius: 5px;
        padding: 2px 3px;
        }