If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
July 15, 2013 at 9:57 pm #26189
First, thank you for the support forum. I have looked through all 15 pages for a similar thread however no luck.
I would like to add a flash swf file to the header on the homepage. The swf file is a movie with buttons (menu links). I uploaded the swf file and added code to the header.php file. I was able to display the flash swf file however, none of the links on the home page worked other than the top menu bar.
Either I have bad code (very possible) or I am placing it in the wrong place in the header.php file. Let me know if I should post the code I am using in the header.php file. The link with the active flash swf header is at: http://goo.gl/332rt
Thank you in advance for your reply.July 16, 2013 at 6:15 am #129626
I think the url link for the xml file is not correct.
IsmaelJuly 22, 2013 at 7:48 pm #129627
I updated the location of the xml file. However, I still am not able to see the swf. Is it my code?
<?php if (is_home()) : ?>
<div class="alignCenter"><a href="http://www.adobe.com/go/EN_US-H-GET-FLASH"><img src="http://www.adobe.com/images/shared/download_buttons/get_adobe_flash_player.png" alt="" /></a></div>
//var fo = new FlashObject("/header_v8.swf", "head", "100%", "504", "7", "");
var fo = new FlashObject("http://02af27e.netsolhost.com/oiea2/wp-content/themes/coherence/flash/header_v8.swf?xmlUrl=http://02af27e.netsolhost.com/oiea2/wp-content/themes/coherence/flash/tfile_main.xml", "play", "100%", "525", "8", "");
I inserted the above code at line 116 on the Coherence header file.July 24, 2013 at 5:49 am #129628
Please check if the flash code itself works first. Insert it into a simple html file (just head, body and nothing else) and if it works it’s a problem with the theme implementation. If it doesn’t work your flash code is broken and you need to fix it (contact the person who created the code, hire someone to rewrite it, etc.).July 24, 2013 at 8:29 pm #129629
Is there cleaner code for insert the flash file into the theme header? Any recommendation for where to insert into the coherence theme header.php file?July 25, 2013 at 1:35 pm #129630
Please try this plugin. http://wordpress.org/plugins/top-flash-embed/
Maybe you can use the shortcode then echo it out using the do_shortcode wp function on header.php.
IsmaelJuly 26, 2013 at 1:45 am #129631July 28, 2013 at 2:56 am #129632
The topic ‘Flash SWF on home header only’ is closed to new replies.