How to Embed Flash Header in Thesis- WordPress Tutorial

by Shubham on April 9, 2010

Well those days are gone when people hesitated to use flash in their websites. Flash headers are getting very popular these days, due to its reduced size and animation features. Flash headers can be used in the theme to give it a cool look. Well inserting a flash header in thesis theme is very easy. In this post I will show you how to exactly do it.Inserting the flash into thesis header is very easy. I am assuming that you have the flash file you want to use in the header. Now place the flash swf file in the root folder directory or wherever you want to place it. Now in your thesis options open custom file editor. Copy and paste the code below to add your header function. This will create a header function  as flash_header. Edit the path of the URL to the path of the desired swf.

function flash_header() {
?>
<center><embed wmode="opaque" src="http://URL.com/filename.swf?v=4.6%3A24710" FlashVars="backgroundColor=0xFFFF99&textColor=0x003333&config=http%3A%2F%2Fwww.nablopomo.com%2Fmain%2Fbadge%2FshowPlayerConfig%3F%26size%3Dsmall" width="800" height="166" menu=false quality="high" bgColor="#adce01" scale="noscale" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></center>
<?php
}
add_action('thesis_hook_header','flash_header');

Now copy the CSS to remove the text header. The CSS will remove the text in the header.

.custom #header #logo { text-indent: -9999px; height:3px;}
.custom #header #tagline { text-indent: -9999px; }

That’s it! You’re Done.

Feel free to comment on the Flash headers and queries related to flash on it.

  • Similar Articles

      None Found

    { 6 comments… read them below or add one }

    avatar Pubudu Kodikara April 9, 2010 at 9:12 pm

    Hehe… flash = cool effects = cool site! 😀
    .-= Pubudu Kodikara´s last blog ..Ubuntu : How to Choose the Fastest Server to Download Softwares and Updates =-.

    Reply

    avatar Srivathsan G.K April 10, 2010 at 9:41 pm

    Wow amazing, gonna give it a try on my dummy wp blog 😀
    .-= Srivathsan G.K´s last blog ..HowTo Clone Facebook Fan Widget For Twitter ? =-.

    Reply

    avatar Business Card Designs December 2, 2010 at 7:43 pm

    hey, Thanks ..Well switching to the Thesis…Well thanks for the tutorial btw.. 🙂

    Reply

    avatar UmairP December 18, 2010 at 8:05 am

    Thanks. It is a useful post. I will try this soon on my site (first I have to make a cool flash header)

    Reply

    avatar Pantho Bihosh May 7, 2011 at 8:10 pm

    Hei Bro,
    Could you tell me, how to add flash file on wordpress thesis theme page? Please help me.

    Reply

    avatar Techlinking May 18, 2011 at 6:19 pm

    We can install the Tube plugins in wordpress. I think that’s best way to post video 🙂
    Techlinking´s last blog post ..Amazon Appstore releases Popcap games now

    Reply

    Leave a Comment

    CommentLuv badge

    Previous post:

    Next post: