• Hi there

    I am using a template which has flash just between the menu and posts/pages section.
    What I need to do is make the flash animation only appear on the home page and on the posts, pages it will just be the top logo and content etc.

    Below is my header.php code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/11001/xhtml" <?php language_attributes(); ?>>
    
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php //comments_popup_script(600, 600); ?>
    
    	<?php wp_head(); ?>
    
    	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.2.js"></script>
    
    	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/cufon-yui.js"></script>
    	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/cufon-replace.js"></script>
    
    	<script src="<?php bloginfo('stylesheet_directory'); ?>/js/Futura_500.font.js" type="text/javascript"></script>
    
    </head><body>
    
    	<div class="main">
    		<div class="main-bg">
    			<div class="main-top"><div class="main-width">
    
    				<div class="header">
    
    					<div class="logo">
    						<div class="indent">
    							<h1 onclick="location.href='<?php echo get_option('home'); ?>/'"><?php bloginfo('name'); ?></h1>
    							<div class="description">
    								<?php bloginfo('description'); ?>
    							</div>
    						</div>
    					</div>
    
    					<div class="search">
    						<div class="indent">
    							<?php get_search_form(); ?>
    						</div>
    					</div>
    
    					<div class="menu">
    						<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
    						width="980" height="176">
    						<param name="movie" value="<?php bloginfo('stylesheet_directory'); ?>/flash/menu_v8.swf?button=0" />
    						<param name="quality" value="high" />
    						<param name="wmode" value="transparent" />
    						<param name="menu" value="false" />
    						<!--[if !IE]> <-->
    						<object data="<?php bloginfo('stylesheet_directory'); ?>/flash/menu_v8.swf?button=0"
    						width="980" height="176" type="application/x-shockwave-flash">
    						<param name="quality" value="high" />
    						<param name="wmode" value="transparent" />
    						<param name="menu" value="false" />
    						<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
    						FAIL (the browser should render some flash content, not this).
    						</object>
    						<!--> <![endif]-->
    						</object>
    					</div>
    
    					<div class="flash">
    					<iframe id="ListFrame" name="ListFrame" style="width:100%; height:100%;
    border:0px" frameborder="0" src="wp-content/themes/theme1022/index.html"></iframe>
    
    					</div>
    
    				</div>
    
    				<div class="content">
    					<div class="corner-left-top"><div class="corner-right-top"><div class="corner-left-bot"><div class="corner-right-bot">	
    
    						<div class="content-bg"><div class="content-indent">
    
    							<?php get_sidebar(1); ?>

    and my index.php :

    <?php get_header(); ?>
    
    	<?php if (is_home()) : ?>
    		<div class="welcome">
    			<h1>Welcome to Our company!</h1>
    
    			<p><span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
    			euismod tincidunt ut laoreet dolore magna.</span></p>
    
    			<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet
    			dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit
    			lobortis nisl ut aliquip.</p>
    
    		</div>
    	<?php endif; ?>
    
    		<?php if (have_posts()) : ?>
    			<?php while (have_posts()) : the_post(); ?>
    				<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    
    						<div class="indent">
    
    							<div class="title">
    
    								<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    
    								<div class="date">
    									<?php the_date(''); ?> @ <?php the_time('') ?>
    								</div>
    
    								<div class="author">
    									posted by <?php the_author_link() ?>
    								</div>
    
    							</div>
    
    							<div class="text-box">
    								<?php the_content('More'); ?>
    							</div>
    
    							<div class="comments">
    								<?php comments_popup_link('comments 0', 'comment 1', 'comments %', '' , 'off'); ?>
    							</div>
    
    							<div class="link-edit"><?php edit_post_link('Edit Post', ''); ?></div>	
    
    						</div>
    
    				</div>
    
    			<?php endwhile; ?>
    
    			<div class="navigation nav-top">
    				<div class="alignleft"><?php next_posts_link('<< Older entries') ?></div>
    				<div class="alignright"><?php previous_posts_link('Newer entries >>') ?></div>
    			</div>
    
    		<?php else : ?>
    			<h2 class="pagetitle">Not Found</h2>
    			<p class="center">Sorry, but you are looking for something that isn't here.</p>
    			<?php get_search_form(); ?>
    		<?php endif; ?>
    
    <?php get_footer(); ?>

    and my page.php :

    <?php get_header(); ?>
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<div id="post-<?php the_ID(); ?>">
    
    			<div class="title-page01"><h2><?php the_title(); ?></h2></div>
    
    				<div class="indent">
    
    						<div class="text-box">
    							<br />
    							<?php the_content('<p class="serif">Read the rest of this page</p>'); ?>
    
    						</div>	
    
    						<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    
    						<div class="link-edit"><?php edit_post_link('Edit Post', ''); ?></div>	
    
    				</div>
    
    			</div>
    		<?php endwhile; endif; ?>
    
    <?php get_footer(); ?>

    Any help will be much appreciated
    Thanks

  • The topic ‘Hide flash on all pages,posts except homepage’ is closed to new replies.