Hey everyone, I'm a flash/actionscript guy with limited experience implementing css/php/html code. I designed a site in Wordpress 2.7.1 using Thematic 0.9, and have everything working except a flash header. First of all, thanks for making the process so easy with Thematic.
I followed Ian's and the forum's instructions to accomplish the following:
1. created a child theme with custom content and overrides
2. placed an image where the header exists,
3. moved the SEO-friendly header copy offstage
4. added a home button to the top nav
Here's the site:
http://willpower.tv/
My aim now is to have an .swf appear exactly where the header .jpg appears. Unfortunately, you can't just swap out a ".swf" for ".jpg" in the style.css child theme here:
#blog-title a {
background:url(images/willpower_header_alt.jpg) no-repeat top center;
// etc
}
Wouldn't that be easy?
I consulted these:
http://themeshaper.com/forums/topic/loading-flash-in-the-header
http://themeshaper.com/forums/topic/widgets-in-the-header
But neither resolves this issue.
With flash, I've got to identify the file's class and add detection and browser-specific handlers. The best-practice way to detect for flash (what Disney/WB/Fox and other entertainment industry companies use) is the opensource swfdetect. I'm using it on this page to call a swf:
http://willpower.tv/wp-test_for_thematic/
That page uses the following code to place either a swf in center at the top edge:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">
/*-- bkg image pattern and overall img-swf alignment --*/
body { padding:0 0 0 0; margin:0; text-align:center; background:#c8ddc0 url(img/bkg.jpg) repeat-x top center; }
/*-- stupid borders --*/
.jesushatesimageborders { border-width:0; padding:0 0 0 0; }
/*-- this corrects default active link img errors in i.e. and firefox browsers when using flash wmode --*/
object { outline:none; padding:0 0 0 0; }
</style>
<!-- open source swfobject flash detect, flash content embed, and alternate content embed -->
<script type="text/javascript" src="swf/swfobject/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("swf/header.swf", "myContent", "940", "272", "8.0.0", "swf/swfobject/express_install.swf");
</script>
</head>
<body>
<div id="myContent">
<a><img class="jesushatesimageborders" src="img/header_alt.jpg" alt=""/></a>
</div>
</body>
If you view this script in a typical browser with both javascript and flash enabled, then the flash header (header.swf) appears. If you view this page on iPhone or in a browser while turning off either flash or javascript, then the site loads only the image (header_alt.jpg) identified in the myContent div id.
I've experimented with inserting a swf load script (variations on the one above) into several locations, but the closest I can get to a working site shows the site with TWO headers. One swf and one jpg, sometimes with the menu missing. If I remove the old jpg header, the header text reappears and the swf leaves the stage.
Does someone know which files I should modify in my child theme (plus a little guidance what to put there) in order to to swap the SWF where the current header resides?
Thanks everyone,
Perre