![]() | | ||||||||
| | #1 |
| HyperActive Warrior War Room Member Join Date: Jan 2003 Location: Denver
Posts: 230
Thanks: 1
Thanked 3 Times in 2 Posts
|
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 | |
| | |
| | #2 |
| Banned War Room Member Join Date: Oct 2008
Posts: 279
Thanks: 82
Thanked 43 Times in 16 Posts
|
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 |
| | |
| | #3 |
| HyperActive Warrior Join Date: Dec 2008 Location: http://sales.mhakim.web.id
Posts: 218
Thanks: 1
Thanked 16 Times in 16 Posts
|
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 | |
| | |
| | #4 |
| HyperActive Warrior War Room Member Join Date: Jan 2003 Location: Denver
Posts: 230
Thanks: 1
Thanked 3 Times in 2 Posts
|
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="clsid 27CDB6E-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 | |
| | |
| | #5 |
| Active Warrior War Room Member Join Date: Jul 2007 Location: Florida
Posts: 99
Blog Entries: 2 Thanks: 6
Thanked 4 Times in 4 Posts
|
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? |
| | |
| | #6 |
| HyperActive Warrior War Room Member Join Date: Jan 2003 Location: Denver
Posts: 230
Thanks: 1
Thanked 3 Times in 2 Posts
|
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 | |
| | |
| | #7 |
| Active Warrior War Room Member Join Date: Jan 2009
Posts: 77
Thanks: 10
Thanked 5 Times in 5 Posts
|
/images/header.gif Change this bit to the path to your SWF |
| | |
| | #8 |
| HyperActive Warrior War Room Member Join Date: Jan 2003 Location: Denver
Posts: 230
Thanks: 1
Thanked 3 Times in 2 Posts
| |
|
Do you Need WordPress Themes for your Offline Clients?? http://www.themes.sourceonetech.com | |
| | |
| | #9 |
| Dumb Irish Kid War Room Member Join Date: Sep 2004 Location: Temple, TX , USA.
Posts: 954
Thanks: 45
Thanked 69 Times in 39 Posts
|
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 :)
| |
| | |
| | #10 | |
| Active Warrior War Room Member Join Date: Jul 2007 Location: Florida
Posts: 99
Blog Entries: 2 Thanks: 6
Thanked 4 Times in 4 Posts
| Quote:
<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> | |
| | |
![]() |
|
| Tags |
| add, file, header, swf, wordpress |
| Thread Tools | |
| |
![]() |