O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying a live Twitter feed

Displaying a Twitter feed on a site can help to keep the content fresh, and to show that a product or service is being actively discussed. In this recipe, we will be using a Twitter widget to display the live Twitter feed for Drupal's Twitter account, as follows:

Displaying a live Twitter feed

How to do it...

We will first set up a new text format to use for adding JavaScript code. We will then create a new block and generate the Twitter widget code that loads the Twitter feed from Drupal's Twitter account. Finally, we will copy the code and place it in a new block.

  1. Select Configuration from the admin menu, then select Text formats.
  2. Select +Add text ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required