Twitter is starting to roll out a new feature called Twitter Cards. You may have noticed this new feature being used by some of your favorite Twitter Users. The summary card looks something like this.
It’s a nice way for your followers to see a snippet of the webpage you are linking to along with a thumbnail.
This handy new feature is not currently available to everyone.
In order for this new feature to work with your WordPress website you have to do two things.
1. Add some code to your header.php file
2. Apply to participate in Twitter Cards
First off, let’s add the needed code to your WordPress website. Login to your dashboard and click the Editor link under your Appearance Menu.
On the right side of your Editor will be a list of Templates. The amount of files listed depends on your theme but we are only interested in one at the moment. Header.php
Once the Header code has loaded you want to slowly scroll down and look for the end of the head section of code. You will know by looking for the closing tag, </head>.
You will paste the code right before that closing tag. Be sure to change our username to your username in the code before saving or it will not work. Here is the code to copy.
After you have logged in and filled out some of the info you will most definitely want to preview your Twitter Card to make sure you did everything correctly. Twitter will deny your application if something is broken. Copy and paste the link to one of your blog posts.
Assuming you installed the code to your WordPress site correctly your preview should look something like this.
Congratulations! You have signed up for Twitter Cards. Twitter will now review your application and send an email regarding your status.
Are you using Twitter Cards? Share with us in the comments so we can check them out.
2 thoughts on “How To Add Twitter Cards To Your WordPress Website”
Thank you for sharing your plugin!.
Surely it will be lot easier with Free Plugin “Twitter Cards Meta”. I am using it in my blog.
http://wordpress.org/extend/plugins/twitter-cards-meta/