Adding a Twitter feed in Magento

As most of the Magento users would be aware of, there is no default option for twitter feed in Magento. If you wish to have twitter feed in your site, you will need to create it manually.  We have discussed in this Blog the simple steps of adding a twitter feed in magento.

Step 1:

Go to the following site and include your Twitter Username: http://twitter.com/about/resources/widgets/widget_profile. Once done, click finish and grab the code. The script code will generate a copy of it.

Step 2:

The next step will be creating a static block for your twitter feed.

In magento admin panel:

Go-> CMS->Static block->add new block

Name : twitter

Id : twitter

Status : enabled

Step 3:

If you wish to show the twitter feed in homepage, you will need to copy and paste the code given below in CMS->Page->Homepage->content

Code:

Code:

  1. {{block type="cms/block" block_id="twitter"}}

In a similar fashion, you will need to call a static block in sidebar as well.

For left sidebar: app/design/frontend/default/yourtheme/layout/catalog.xml

  1. <reference name=”left”>
  2.  
  3. <block type="cms/block"> <actionmethod="setBlockId"><block_id>twitter</block_id></action></block>
  4.  
  5. </reference>

Output:

magentotwitter

Stay tuned to our Cogzidel templates Blog for more sparkling news and updates!!

  • Share/Bookmark

This entry was posted on Thursday, January 19th, 2012 at 5:48 am and is filed under Ecommerce templates, Magento Admin, Magento Templates. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

« Back to text comment