Title: swfObject and Custom WordPress install
Last modified: August 19, 2016

---

# swfObject and Custom WordPress install

 *  Resolved [jasotasticon](https://wordpress.org/support/users/jasotasticon/)
 * (@jasotasticon)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/swfobject-and-custom-wordpress-install/)
 * I am trying to put a swf in my wordpress template page without success. It keeps
   showing my alt img.
 * I have used swf object correctly outside of wordpress, but when i put it in my
   custom install it won’t work.
 * Perhaps it has to do with the java in my header temp? I did insert the appropriate
   code there though. Also I tried it with/without the SwfObj plugin activated.
 * What am I doing wrong?
 * Here is what I have:
 * ——————————–
    HEADER ——————————–
 * <?php
    /** * [@package](https://wordpress.org/support/users/package/) WordPress*
   @subpackage Classic_Theme */ ?> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 
   Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   <html xmlns=”[http://www.w3.org/1999/xhtml&#8221](http://www.w3.org/1999/xhtml&#8221);
   <?php language_attributes(); ?>>
 * <head profile=”[http://gmpg.org/xfn/11″&gt](http://gmpg.org/xfn/11″&gt);
    <meta
   http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?
   php bloginfo(‘charset’); ?>” />
 * <title><?php wp_title(‘«’, true, ‘right’); ?> <?php bloginfo(‘name’); ?></title
   >
    <<script type=”text/javascript” src=”swfobject.js”></script> <script type=”
   text/javascript”> var flashvars = {}; var params = {}; var attributes = {}; swfobject.
   embedSWF(“testo.swf”, “flashDiv”, “550”, “400”, “9.0.0”, false, flashvars, params,
   attributes); </script>
 * <style type=”text/css” media=”screen”>
    [@import](https://wordpress.org/support/users/import/)
   url( <?php bloginfo(‘stylesheet_url’); ?> ); </style>
 * <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php 
   bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS.
   92″ href=”<?php bloginfo(‘rss_url’); ?>” /> <link rel=”alternate” type=”application/
   atom+xml” title=”Atom 1.0″ href=”<?php bloginfo(‘atom_url’); ?>” />
 * <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘
   type=monthly&format=link’); ?> <?php //comments_popup_script(); // off by default?
   > <?php wp_head(); ?> </head>
 * <body>
    <div id=”rap”>
 * <h1 id=”header”></h1>
 * <div id=”content”>
    <!– end header –>
 * ——————————–
    PAGE ——————————–
 * <?php
    /* Template Name: studio */ ?>
 * <?php get_header(); ?>
    <?php get_sidebar(); ?>
 * <div id=”flashDiv”>
 * <img src=”[http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&#8221](http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&#8221);
   alt=”Get Adobe Flash player” />
 * </div>

Viewing 1 replies (of 1 total)

 *  Thread Starter [jasotasticon](https://wordpress.org/support/users/jasotasticon/)
 * (@jasotasticon)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/swfobject-and-custom-wordpress-install/#post-953404)
 * figured it out, I need to put the absolute path to the swf file.

Viewing 1 replies (of 1 total)

The topic ‘swfObject and Custom WordPress install’ is closed to new replies.

## Tags

 * [swfObject](https://wordpress.org/support/topic-tag/swfobject/)

 * 1 reply
 * 1 participant
 * Last reply from: [jasotasticon](https://wordpress.org/support/users/jasotasticon/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/swfobject-and-custom-wordpress-install/#post-953404)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
