Using a Flash Logo in Drupal

May 28, 2009
blog author

Appno Blogger

Appnovation Coop

Sometimes we may want to use Flash rather than an image for the site logo. To achieve this in Drupal, we can make use of the SWFObject javascript library. Modify page.tpl.php, and in the place where an image logo is displayed, replace with the following code:



Change the Flash settings (e.g,. file path, display size), to suit your needs. Don't forget to include swfobject.js in page.tpl.php. For details about SWFObject (e.g., where to download and how to use the 'embedSWF' method), please check out and the section, 'How to embed Flash Player content using SWFObject dynamic publishing'.