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.
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.
[...] at DailySEOblog has written a post on how to insert a Flash file to your WordPress header using a simple plugin. [...]
Thank you
But How can i insert Swf File in Blogspot ?
Mohammad’s last blog post..????? ????? ??????
Reply
Hari K T
Replied:
Though I have not tried this in blogger. You need to upload the swf file some where first . Then make the link to the swf object.
Something like this .
Let me know whether it works for you .
Reply
Hari K T
Replied:
Oops the code is not displaying. You can check it out how to add flash from http://www.w3schools.com/flash/flash_inhtml.asp
Reply
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.
Reply
Hari K T
Replied:
First view the source code from browser . Then track where you need to place it. A quick search may find similar words in php file. Go and add some letters in html and try . If it works , you succeed. Else keep trying like this . You may spend some time , but will learn it , I am sure.
Reply
Hari K T
Replied:
Oops the code is not showing . So let me add the link http://www.w3schools.com/flash/flash_inhtml.asp
Reply
worked nice for me, thank you very much.
Reply
“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
Reply
Mani Karthik
Replied:
That would be the Header image code.
It should start with this code –
< img src = >
Reply
C ward
Replied:
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
Reply
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!
Reply
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.
Reply