I am a novice Drupal developer and currently have a static image for the header. Does anyone know how to incorporate flash into the header so there is scrolling images for the header instead of a static one. Any help or a link would be greatly appreciated!

Comments

vm’s picture

hardcode it into page.tpl.php

miahjenn’s picture

Awesome, any examples you can give to accomplish this?

vm’s picture

not sure what examples you are looking for, its just a matter of called the flash file in an area of the page.tpl.php where you want it displayed.

carlthuringer’s picture

Navigate to the folder in your htdocs or www or public_html directory that contains the theme file.

If you're using a core theme like garland you should make a subtheme in the /sites/all/themes directory. As a quick solution, I believe copying the core theme's directory to your sites/all/themes directory will override it.

If it's contributed, you should also make a subtheme but I wouldn't worry so much about it.

Then open the page.tpl.php file in the theme directory (again, under sites/all) and look It over.

This will be easy enough to understand if you are a fair-to-middling html/css programmer. If not... Compare it to the output you can inspect using the Firebug Firefox plugin.

Figure out where the header div is and insert your flash embedding code.

Another method, one I would use, would be to have a header region defined in the template and just create a custom block with the code you need.

mm167’s picture

flash as logo in header area:
http://www.drupalway.com/ (login as demo1, psw=demo1)

is this what u are looking for?

melissamwong’s picture

Can you direct me to a node that describes how to create this? I have several nodes describing adding flash to a header and they all are quite different

in their instructions :(

Thanks!