Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Need custom header to display only on home


r-a-y
Keymaster

@r-a-y

Open up your header.php, do a conditional check for the homepage and output the flash header only.

eg.

<?php
if ( is_front_page() || !bp_current_component() || ( is_home() && bp_is_page( 'home' ) ) ) : ?>

<div class="flash">

<object width="950" height="260">
<param name="movie" value="http://bizolly.com/flashfinal.swf">

<embed src="http://bizolly.com/flashfinal.swf" width="950" height="260">
</embed>
</object>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="950" height="260" id="flash header updated" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="flash header updated.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="flash header updated.swf" quality="high" bgcolor="#ffffff" width="950" height="260" name="flash header updated" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
</noscript>

</div>

<?php
endif; ?>

Skip to toolbar