WordPress Themes Twitter Adder Master Your Webmaster SEO Software WordPress Themes

How to insert a flash file to your wordpress header?

Share

There are some clients of mine who are very keen on using flash files in their sites. It often end up in a rough debate with me, and both parties got to take deviation. (If you didn’t know, I’m not a fan of using flash.)

Most of the times, I allow them to use flash in a limited way throughout the site. If it’s a static page, we’ll go for small flash elements on each page and for wordpress users, I go for flash headers. Yea, it’s not a good idea actually, because it make you lose some valuable real estate for search engine optimization. But I’ve found a work around to this.

Generally when you use a flash file, these are the problems that you come across.

  • Waste of real estate for SEO
  • Cross browser compatibility issues
  • Non indexability of text used in flash files
  • Unwanted code in the html

But with the workaround you can actually, minimize the unwanted code in html, while the other issues will be there.
Alternatively, you can specify your header text instead of the flash file.

This work around should work for all wordpress themes, but I haven’t tested it on all themes, the Kubrik based themes with large headers seems to work.

It’s a simple plugin that we can use to get this problem solved. This plugin helps you to use a flash file anywhere inside your theme, on your header, posts, sidebars anywhere! Pretty cool isn’t it?

Download the plugin here. The credit goes to Michael Bester for developing this plugin.
To use this plugin, upload it to your plugins directory and activate it from plugins menu. Then go to your header.php file in themes directory and replace the header code with the following code –

[kml_flashembed movie="/path/to/your/movie.swf" height="value" width="value" /]

Of course, replace the values with the actual height and width, and the path to the URL where you've saved the swf file.

It works like charm and if you like it do drop a line to Michael.

Stylish Wordpress Themes

Written by Mani Karthik

Blogger, Web / Social Media Enthusiast & SEO with Flip Media. I'm always on the learning curve. Love to meet new people, feel free to befriend me.

Follow Mani Karthik on Twitter Add Mani Karthik on Facebook

30 Responses

  1. Thank you

    But How can i insert Swf File in Blogspot ?

    Mohammad’s last blog post..????? ????? ??????

  2. K Raney

    Forgive me for being a retard, but what exactly is the “header code” that I am replacing? I’ve looked at the header.php file in the theme I want to put the code on, but have no idea where it goes.

  3. worked nice for me, thank you very much.

  4. jwqlb

    “Forgive me for being a retard, but what exactly is the “header code” that I am replacing? I’ve looked at the header.php file in the theme I want to put the code on, but have no idea where it goes.”

    Thats also my question.

    Regards
    jwqlb

    • Mani Karthik

      That would be the Header image code.
      It should start with this code –
      < img src = >

      • C ward

        Hi I am struggling with this too…
        I’m very new and don’t understand where in header.php I should be putting the code. Could I have a little more info of whre it should be in context of the default kubrick file please.

        It would be greatly appreciated

        Many thanks

  5. the serpent

    Hi,
    i use the mandigo theme and it allows to have random and/or different headers per page.
    I couldn’t find the tag, its only things like

    if we find header with post tile name

    if random header option enabled

    if we find your dog in the street

    etc…

    how can I do?
    I think the kubrik has this random header function aswell but maybe you found the img src tag in it.
    I’d greatly appreciate if you’d shed light on this.

    Thanks!

  6. Hi, helpful tool to add flash to posts, but it’s based within wordpress code and cannot be used for headers, only for posts created in the wordpress control panel.

    This code:

    [kml_flashembed movie="/path/to/your/movie.swf" height="300" width="300" /]

    is not html and therefore is useless in the header.php file.

  7. Thanks for the great info and tip. Did not know that Flash headers are not SE friendly.
    Thanks.

  8. I’ve used a lot of flash both in css/xhtml standards sites (using the famous deconcept swfobject method, which the Kimli Flash Embed mimics) and in WordPress using the Kimli Flash Embed plug-in. However, I cannot get either system to work in the header.php.

    I’m placing the code in the header div but nothing is displaying. I’ve tried changing paths to swf and still nothing. What might I be missing? Any thoughts?

  9. Hi Mani . . . Hmmmm…. was using a transparent background over the header.div background (the background image is the same as the beginning of the flash movie so that whilst it’s loading, you can see the static version of the header). Anyway, to check if the Flash was even loading, I removed the transparent setting and got the white background that is on the swf. It seems for some odd reason that the swf doesn’t want to play. Have tried a few other swfs in the body/pages and I get the same result: a white background but no movie. Have deleted the plug-in and tried an older version – same problem. Have uploaded the newest version again and same problem. What do you think? WordPress issue?

  10. Anthony

    This article is rather old. And likewise the reasons listed for not using flash are factually incorrect.

  11. THANK YOUUUUUUUUUUUUUU!!!!

  12. Thanks for the tip dude! great way to add flash to wordpress – thanks a lot

  13. thank you for sharing, it helps me alot :)

  14. Amit kumar

    this is totally waste of time not working ,The author itself does not know where to insert in header.php,not giving full information

  15. ayhan

    Very nice tip. Thanks for share and thanks for the plugin creator

  16. xxx

    well i tester this plugin in the latest version and it woul`d not install and let me login until i deleted it…

  17. works like a charm!

  18. Naushad

    thats was a good one Mani, but can u tell something on How to Insert CU3ER, instead of Header iMage. Im Using Wp 3.0, Theme Twenty Ten.

Leave a Reply