Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Almost done - flash vs. images in header

Old May 2, 2009, 12:53 PM
120 posts · Apr 2009
Almost done - flash vs. images in header

Hi all - Theme is working great for me; one thing I need to figure out.

However, is there a way to have the flash header on the home page, and have all other pages use the default header image folder? (Or just a static header image?). Is there a way to choose flash header vs. image on a page-by-page basis (that would be really cool - my header will have video content, I'd like to go static on pages with posted video for smoother playing).

If it's easier, I could be very happy with simply choosing which SWF is in the header on a page-by-page basis - I could use a single-frame SWF and that would take care of bandwidth problems.

I looked into the dynamic headers plugin but from searching here, it seems it's not compatible?

Thanks in advance!

test url is:


(Yes, that's me on the video page...)
Old May 5, 2009, 02:48 PM
120 posts · Apr 2009
Anyone got any ideas???

Thanks - mc
Old May 5, 2009, 08:52 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
That will be a messy edit of bfa_header_config.php and it'll be obsolete soon as I am going to re-code the whole header area and add widget areas there. I'll start with that the next days and have it in the over-next release towards the end of May
Old May 6, 2009, 10:31 PM
120 posts · Apr 2009
Thanks Flynn - is there any hack that could get me through for now though, even if just the index had one file and everything else had another?

I guess I'm thinking along the lines of "if it's the index, this file - otherwise, that file"

Man, I wish PHP was that easy...
Old May 7, 2009, 02:31 AM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
I'd disable the default header images at Theme Options -> Header -> Configure header Area, then put this into index.php below or above
<?php bfa_header_config($bfa_ata['configure_header']); ?>

PHP Code:
<?php if ( is_front_page() ) { ?>
Flash / Video code for homepage
<?php } else { ?>
<div class="header-image-container"></div>
<?php ?>
Then add a CSS Insert
HTML Code:
div.header-image-container {
height: 150px;
background: url(/wp-content/themes/atahualpa/images/defaultimage.gif);
body#body-page-13 div.header-image-container {
background: url(/wp-content/themes/atahualpa/images/page13.gif);
body#body-page-27 div.header-image-container {
background: url(/wp-content/themes/atahualpa/images/page27gif);
body#body-page-109 div.header-image-container {
background: url(/wp-content/themes/atahualpa/images/page109.gif);
Old May 7, 2009, 11:43 AM
120 posts · Apr 2009
No go, I get this on all pages (and I assume you meant header.php

Parse error: syntax error, unexpected T_STRING in /home/content/c/l/o/cloudycom/html/wp-content/themes/atahualpa332/header.php on line 841

Header image is disabled in the theme controls (I've already had a global flash header working fine)

Here's how the code looks as pasted; I notice in dreamweaver that the second div is highlighted as an error (div class="header-image-container):

<?php bfa_header_config($bfa_ata['configure_header']); ?>

		<!-- Header -->
		<td id="header" colspan="<?php echo $cols; ?>">
<div style="height: 200px;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="940" height="200"><param name="movie" value="http://cloudyproject.com/wp-content/themes/atahualpa332/images/hdr-1.swf" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="wmode" value="transparent" /><embed src="http://cloudyproject.com/wp-content/themes/atahualpa332/images/hdr-1.swf" wmode="transparent" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="940" height="200"></embed></object></div>
<div*class="header-image-container style="height: 200px;"></div>
(I've since closed the quotes after "header-image-container" )

CSS insert - keeping it simple for now, and the image URL is good, comes up in my browser when entered:

/* header no-flash image */
div.header-image-container {
height: 200px;
background: url(http://www.cloudyproject.com/wp-content/themes/atahualpa332/images/defaultimage.png);
URL is cloudyproject.com, but I've returned to the working header with global flash.

Flynn, thanks a bunch for helping!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash content in header image iain Header configuration & styling 5 May 18, 2011 08:27 AM
Inserting Flash into Header - Will not Load gotogirl1113 Header configuration & styling 3 Jun 23, 2009 08:51 PM
[SOLVED] quick one - flash in the header mcphoto Header configuration & styling 2 Apr 30, 2009 08:57 AM
2 Questions Flash header not working and custom Menu adventurer11 Header configuration & styling 1 Apr 5, 2009 06:09 PM
Flash in place of rotating images in header frankrizzo5150 Header configuration & styling 7 Feb 21, 2009 01:04 PM

All times are GMT -6. The time now is 01:12 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.