Jump to content
Lizard Wizard Coding Club

Embedding swfobject in Wordpress

Recommended Posts

I am trying to embed this header: http://tinyurl.com/nnxu86 into this page: http://tinyurl.com/ms8hql . I have zero experience with flash and I've been searching for clues on how to make this work but haven't found the solution yet. Hopefully it's something simple.


I have the following files in the theme folder:








I have following in the head:


swfobject.embedSWF("banner.swf", "banner", "800", "280", "8.0.0");


And I have the following in the home-page.php template:



I know I'm missing something, but I have no idea what it is. Can someone help? Thanks!

Link to post
Share on other sites

Susie you can pick the code from my page source. Adapt it to your page, that is all.

You'll only need to have one line for swf object in the head. The rest should be in a place where you embed Flash.

There more to it of course in the documentation for SWFObject, if you'll need it.

Link to post
Share on other sites

Hmmm... it's still not working for me. Am I missing something?


I have this in the template where I want the flash item to show:


<br /> swfobject.embedSWF("banner.swf", "banner", "800", "280", "8.0.0");<br />


Is the issue the fact that I'm doing this in Wordpress?


Edit to add: I just added the full path to banner.swf and it still doesn't work.

Edited by Susie
Link to post
Share on other sites

If you are sure in this code, check paths to the movie and .js file in the head.

I use other lines for swf embed which worked ok so far.

On this page you can compare your snippet with what should be, may be it will help.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...