Title: Embedding Flash within theme (header)
Last modified: August 19, 2016

---

# Embedding Flash within theme (header)

 *  [aneemal](https://wordpress.org/support/users/aneemal/)
 * (@aneemal)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/embedding-flash-within-theme-header/)
 * I have tried everything to embed a flash banner in the header of my wordpress
   theme, but no matter what I do, it will no appear!
 * I’ve checked and double-checked all the paths and filenames. I’ve tried using
   SwfObject script and also just using the normal <object> tags, but to no avail.
   Can anyone help??

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/embedding-flash-within-theme-header/#post-1370076)
 * Have you made sure that you are using absolute urls?
 *  Thread Starter [aneemal](https://wordpress.org/support/users/aneemal/)
 * (@aneemal)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/embedding-flash-within-theme-header/#post-1370183)
 * Hi Esmi,
 * thank you for your response. Yes, I’ve tried both relative and absolute urls,
   but it seems to make no difference?
 * Does it matter that I am running the site locally on localhost?
 * I put this in my header php file:
 *     ```
       <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/swfobject.js"></script>
       <script type="text/javascript">
       	swfobject.registerObject("menu_container", "8");
       </script>
       ```
   
 * And this in the main page:
 *     ```
       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="menu_container" width="770" height="380">
       	<param name="movie" value="<?php bloginfo('stylesheet_directory'); ?>/flash/new.swf">
       	<!--[if !IE]>-->
       	<object type="application/x-shockwave-flash" data="<?php bloginfo('stylesheet_directory'); ?>/flash/new.swf" width="770" height="380">
       	<!--<![endif]-->
       	<a href="http://www.adobe.com/go/getflashplayer">
       	<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player">
       	</a>
       	<!--[if !IE]>-->
   
       	</object>
       	<!--<![endif]-->
       </object>
       ```
   
 * Please, I’d really appreciate any input!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/embedding-flash-within-theme-header/#post-1370230)
 * Try replacing `<?php bloginfo('stylesheet_directory'); ?>` with `<?php bloginfo('
   template_directory'); ?>`.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/embedding-flash-within-theme-header/#post-1370238)
 * [http://kimili.com/plugins/kml_flashembed/wp](http://kimili.com/plugins/kml_flashembed/wp)
 * > I’d like to use KFE to put a Flash header in my WordPress site. How do I do
   > it?
   > You can put a kml_flashembed tag anywhere on your site, but it requires some
   > familiarity with editing PHP and HTML files. With the Tag Generator, the plugin
   > is set up to insert tags in posts very easily, but you can manually insert 
   > a tag in any of your theme files as well. Simply navigate to Appearance → Editor,
   > select one of your current Theme’s PHP files, and insert a KFE tag among the
   > HTML and PHP where you want your SWF to appear.
 * source
    [http://kimili.com/plugins/kml_flashembed/#faqs](http://kimili.com/plugins/kml_flashembed/#faqs)
 *  Thread Starter [aneemal](https://wordpress.org/support/users/aneemal/)
 * (@aneemal)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/embedding-flash-within-theme-header/#post-1370268)
 * Hi esmi and samboll, thank you for your input.
 * esmi, I tried replacing the code, as suggested, but it makes no difference.
 * samboll, I had installed the Kimili plugin… but I’m struggling with it. Do I 
   insert the generated tags? i.e., the square ones:
    `[kml_flashembed movie="/my/
   great/movie.swf" width="400" height="300"]`
 * with these [] tags, the code itself appears in the page. If I replace them with
   these <> tags, the Download Flash icon (alternative content) appears. I tried
   inserting the flash into the post, for testing, but again, the writing inside
   the square tags is all that appears.
 * Going back to just normal html embedding, nothing shows, but if I right-click
   over the area, it gives me the Flash menu – so the Flash _is_ there?
 * This is driving me insane :'( …It _can’t_ be this difficult!!
 * Thanks for your help… if you have any other tips, please let me know. If I find
   any solutions, I’ll be sure to post them here.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Embedding Flash within theme (header)’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [aneemal](https://wordpress.org/support/users/aneemal/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/embedding-flash-within-theme-header/#post-1370268)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
