Embedding a flash header is fairly easy with Thesis. In this tutorial I will show how to do exactly that. One thing I will not cover is how to write the html necessary to embed flash. I will assume that you already have an embed code. Also, there are numerous ways to get your flash header on your site.
Method #1 will leave the traditional Thesis Theme header and the flash will appear right below it. Here is method #1:
- First, you must log into WordPress and click the following: Appearance → Design Options.
- Find the “Feature Box” section and expand the top option. For a “header” feature box choose the feature box placement option “full width above content and sidebars.” Then decide if you want it to show on only the home page or sitewide. Don’t forget to save!
- Now open custom.css and custom_functions.php.
- In the custom_functions.php enter the following code:
function fancy_pants_flash() { ?> your embed code goes here <?php } add_action('thesis_hook_feature_box','fancy_pants_flash');
Method #2 will actually put the flash in the header and obscure the traditional header text. And here is method #2:
- Open your custom.css and custom_functions.php.
- In your custom_functions.php enter the following:
function fancy_pants_flash() { ?> your embed code goes here <?php } add_action('thesis_hook_after_title','fancy_pants_flash'); - Now type the following in custom.css:
.custom #header #logo { text-indent: -9999px; } .custom #header #tagline { text-indent: -9999px; }
DO NOT FORGET TO SAVE YOUR WORK!!!
One last thing: Thesis Tutor can’t help you with the flash aspect of this tutorial. So if you are wondering about parameters and what not, I suggest you read this and this.
{ 8 comments… read them below or add one }
I know this tutorial came from a Twitter call for help less than 24 hours ago (cuz I made it). A big ole Thanks and thanks again.
Bryan (aka konakiko)
Matt,
This was a great and simple to follow tutorial on how to load up a flash header in Thesis! Thank you!!
Although it worked I have a quick question, when the flash is done playing the background bleeds out and is left white. Do you have any idea what I need to tweek in order to fix that?
Thank you,
Khan
@Khan
Email me an example and I’ll see if I can help.
Will do – but I can not find your email on the site?
I’m a newbie on Wordpress. I was wonder how to put the flash into the header. I’ll try this avo. It wasn’t hard on joomla. Many thanks.
It depends on your theme. This tutorial only works with Thesis.
how to integrate flash in header.php no solution found yet plz help me out
thanx for this article.
i will try it in my blog http://www.matrisms.com.