Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 02-06-2009, 12:05 AM   #1
HyperActive Warrior
War Room Member
 
Join Date: Jan 2003
Location: Denver
Posts: 230
Thanks: 1
Thanked 3 Times in 2 Posts
Default Does Anyone know the best way to add a .swf file to a wordpress header?

Hi -

I am trying to add a .swf file as the header to a wordpress blog - a revolution theme and can't seem to locate the correct info on how to do so.

I have found several items on google, but they just don't seem to work.

If anyone has info on the best way to do this that would be wonderful.

I unfortunately just have the .swf file and not the parsed info. If that is needed if you can point me to the best parser that would be great.

Thank you

Do you Need WordPress Themes for your Offline Clients?? http://www.themes.sourceonetech.com
sblackburn is offline   Reply With Quote
Old 02-06-2009, 01:41 AM   #2
Banned
War Room Member
 
Join Date: Oct 2008
Posts: 279
Thanks: 82
Thanked 43 Times in 16 Posts
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

I take it the swf is a fairly large file? If it's small then you could always just save the swf as a .gif

Other than that I have no idea, sorry I couldn't be more helpful pal.

Maybe it would be a good idea to look for a Wordpress Designer's Forum or something similar and ask there.

T.Genius
Teenage Genius is offline   Reply With Quote
Old 02-06-2009, 02:29 AM   #3
HyperActive Warrior
 
redneo's Avatar
 
Join Date: Dec 2008
Location: http://sales.mhakim.web.id
Posts: 218
Thanks: 1
Thanked 16 Times in 16 Posts
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

host the swf file to ur hosting directory with 777 chmod. after that embeded the path replacing your logo path in the header.php of the templete.

Hire me $10/day for ANY JOBS | My Portfolio
redneo is offline   Reply With Quote
Old 02-06-2009, 09:50 AM   #4
HyperActive Warrior
War Room Member
 
Join Date: Jan 2003
Location: Denver
Posts: 230
Thanks: 1
Thanked 3 Times in 2 Posts
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

Thanks for the pointers.

I believe that this is the section that I need to embed the file into - but I just can't get the sentax correct:

Where I believe it goes in place of the url(images.header.jpg); :
#header {

background: #85ACAC url(images/header.jpg);

width: 1000px;

height: 200px;

color: #FFFFFF;

font-size: 11px;

margin: 0px;

padding: 0px;

overflow: hidden;

}

Here is my code to embed:

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="188" width="521">

<param name="movie" value="images/source_one2.swf">
<param name="quality" value="high">
<embed src="images/source_one2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="188" width="521"></object>

Any pointers on the proper syntax would be wonderful

Do you Need WordPress Themes for your Offline Clients?? http://www.themes.sourceonetech.com
sblackburn is offline   Reply With Quote
Old 02-06-2009, 12:08 PM   #5
Active Warrior
War Room Member
 
nextebizguy's Avatar
 
Join Date: Jul 2007
Location: Florida
Posts: 99
Blog Entries: 2
Thanks: 6
Thanked 4 Times in 4 Posts
Contact Info
Send a message via Yahoo to nextebizguy Send a message via Skype™ to nextebizguy
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

Look for the header.php file for your theme. You can dump the code in there and then adjust as needed. The CSS file is just supplying an image for the header background which you won't need now that you have the SWF. Just comment out the CSS background url/jpg.

Make sense?
nextebizguy is offline   Reply With Quote
Old 02-06-2009, 12:13 PM   #6
HyperActive Warrior
War Room Member
 
Join Date: Jan 2003
Location: Denver
Posts: 230
Thanks: 1
Thanked 3 Times in 2 Posts
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

Thanks for the response:

Here is the section in my header.php file:

<div id="header">
<div class="headerleft"> <a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/header.gif" alt="<?php bloginfo('description'); ?>" /></a> </div>

Should the embedd code replace where /images/header.gif is? I feel like I am just missing something in the syntax - I did try it here and it didn't work properly before.

The reason I pointed to the stylesheet is that when I originally pointed the header.php to a different image it didn't change anything - but pointing the stylesheet did.

Thanks in advance

Do you Need WordPress Themes for your Offline Clients?? http://www.themes.sourceonetech.com
sblackburn is offline   Reply With Quote
Old 02-06-2009, 12:19 PM   #7
Active Warrior
War Room Member
 
Join Date: Jan 2009
Posts: 77
Thanks: 10
Thanked 5 Times in 5 Posts
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

/images/header.gif

Change this bit to the path to your SWF
Gimme4Free is offline   Reply With Quote
Old 02-06-2009, 12:23 PM   #8
HyperActive Warrior
War Room Member
 
Join Date: Jan 2003
Location: Denver
Posts: 230
Thanks: 1
Thanked 3 Times in 2 Posts
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

Quote:
Originally Posted by Gimme4Free View Post
/images/header.gif

Change this bit to the path to your SWF
I have tried this and it doesn't work pointing directly to the .swf file - I believe the embed code needs to go here - but when I just replace the /images/header.gif with the embed code it fails

Do you Need WordPress Themes for your Offline Clients?? http://www.themes.sourceonetech.com
sblackburn is offline   Reply With Quote
Old 02-06-2009, 12:36 PM   #9
Dumb Irish Kid
War Room Member
 
Paul Buckley's Avatar
 
Join Date: Sep 2004
Location: Temple, TX , USA.
Posts: 954
Thanks: 45
Thanked 69 Times in 39 Posts
Contact Info
Send a message via Yahoo to Paul Buckley Send a message via Skype™ to Paul Buckley
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

Here's a better question: why would you want "flash" (.swf) on your website? It's bad for SEO. Robots can't read it and Google, et al, takes a dim view of sites using it.

If you want to generate revenue from your website or improve your search engine rankings avoid "flash". If you just want to "brand" yourself and don't require search engine traffic, by all means, "flash" to your hearts content.

Mea navis aėricumbens anguillis abundat. (Quidquid latine dictum sit altum viditur :)
Paul Buckley is offline   Reply With Quote
Old 02-06-2009, 01:09 PM   #10
Active Warrior
War Room Member
 
nextebizguy's Avatar
 
Join Date: Jul 2007
Location: Florida
Posts: 99
Blog Entries: 2
Thanks: 6
Thanked 4 Times in 4 Posts
Contact Info
Send a message via Yahoo to nextebizguy Send a message via Skype™ to nextebizguy
Default Re: Does Anyone know the best way to add a .swf file to a wordpress header?

Quote:
Originally Posted by sblackburn View Post
Thanks for the response:

Here is the section in my header.php file:

<div id="header">
<div class="headerleft"> <a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/header.gif" alt="<?php bloginfo('description'); ?>" /></a> </div>
Ok, I'll give it a try but this is hard without trying it on my own WP install.

<div id="header">
<div class="headerleft"> <a href="<?php echo get_settings('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/header.gif" alt="<?php bloginfo('description'); ?>" /></a> </div>

All this stuff is just basic WP/PHP code to pull your default blog name and description. You can chuck it assuming you have all the blog/site info your SWF.

Try replacing your header code with this (make a backup first ok?!)

Code:
<div id="header">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="188" width="521">

<param name="movie" value="images/source_one2.swf">
<param name="quality" value="high">
<embed src="images/source_one2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="188" width="521"></object>
</div>
Let me know what happens.
nextebizguy is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
add, file, header, swf, wordpress

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 11:10 AM.