• I have a SWF Flash Banner that I would like to install in the Header of my site; however I don’t know how to do this. I have looked through the forum and nothing seemed to help.

    Does anyone out there know the HTML coding to add in a SWF banner?

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Using FTP, go to /wp-content/themes/YOUR-THEME-NAME/ and edit the file in which you want the flash banner to dsplay. Then use this code (change accordingly)

    <object width="XXX" height="XXX">
    <param name="movie" value="filename.swf">
    <embed src="filename.swf" width="XXX" height="XXX">
    </embed>

    That should do what you want.

    Hello,

    I have a banner idea and would also like to do this on a site where I had previously used Kimili Flash Plugin short codes to accomplish the task.

    I tried your code (adding the ending </object>) and, indeed, the flash movie appeared in the banner where it had been. Doing it this way had a bad effect on the Featured Content Gallery plugin, as it never loaded. But that is another and unrelated issue.

    What I’m wondering is this:

    How can you make the flash banner “clickable” and can you embed alt tags for search engines to read?

    Thanks for even considering an answer to this…

    Marj Wyatt aka Virtually Marj

    Thread Starter bwbettes

    (@bwbettes)

    @snat; thanks for your respone but hat doesn’t seem to work. There seems to be more involverd with this banner, such as both .swf and .xml files. Not sure which one goes where. I have played around with it and the most I can get is a big white box.
    If you have any other ideas that would be greatly appreciated.

    Brandon

    @bwbettes; I guess it depends on what theme you are using but @snat’s code worked, with the exception that you need to close the object tag. So, correcting his code it would be:

    <object width="XXX" height="XXX">
    <param name="movie" value="filename.swf">
    <embed src="filename.swf" width="XXX" height="XXX">
    </embed></object>

    I recommend installing Kimili Flash plugin and using the shortcode to embed your .swf into the header.

    Marj Wyatt aka Virtually Marj

    Thread Starter bwbettes

    (@bwbettes)

    Thanks for the response Marj,

    I tried both and nothing. Guessing it’s probably the Flash banner. Weird thing is that the banner works when I open it up on Mozilla, just not in the HTML coding. I installed Kimili and nothing.

    I guess I there is something more to it than replaceing the “filename.swf” with my swf file name “projectDiscipline.swf”

    Thanks for trying, I appreciate it.

    SOLVED!!!

    I was struggling for hours to embed a swf. I didnt want to add it in a post/page through the admin interface, rather hard code it into one of the template files. (in my case index.php).

    You cannot place the swf or any of its attached files (e.g. xml, img data) in your theme’s directory. Place ALL flash content in the ROOT of your page, yes, among all the wp-whatever.php files. Then reference the swf’s location in whatever theme file you want (index.php, home.php, header.php) as <?php bloginfo(‘url’) ?>/yourmovie.swf.

    I really hopes this helps someone. I was loosing my mind!!

    Richard

    thank you so much for the help, but i cant get this knot off my head, y can’t we add swf or any attached file into our themes directory?..thnx

    Hi bwbettes,
    Did you sort your flash header problem ? If so could you tell me how ? I have kimili flash embed and would just like to know where exactly in header.php should I place the file ? I am using wordpress 3 ?

    I think richard.calahan is onto something. I understand ?php bloginfo(‘/yourmovie.swf.’) ?> What I don’t understand is this ROOT he’s talking about. Do I make a root.php, because I’m not seeing one with WordPress 3
    Can anyone shed some light on this?

    I got the root figured out. He’s referring to the root directory on my host…sometimes the elevator just doesn’t make it to the top floor.

    Now that this is established, Is this <?php bloginfo(‘url’) business correct. Seems to me that there should be a include somewhere?

    There’s got to be something else that is needed. I’m using the <?php bloginfo(‘url’) ?>/yourmovie.swf and all that is doing is printing the correct location. I need the thing to run.
    Any thoughts

    You can see it here: WordPress

    Got it!
    Just use Kimili…works great : )

    Hey,

    Haven’t checked this in a while…sorry

    Odd that calling a direct reference to the file didn’t work. Did you use the correct code. 99.9% of the time a file called SWf Object is used. Its an open source ‘plugin’ that when linked to your site, makes it easy to add flash content into html. After linking swfobject.js in your html, adding the correct html wherever you want the movie to play. Thorough documentation can be found here…

    https://code.google.com/p/swfobject/wiki/documentation

    The Kimili plugin is helpful, but its better to know the fundamentals as well. Hope this helps.

    Richard

    yey….. Kimili Worked……. Thanks.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘SWF Flash Banner Install’ is closed to new replies.