Wordpress: Changing the header.php only effect the home page

I'm using wordpress for my website. I wanted to add some flash to my header so i created everything i wanted and i went into the Header.php file and insterted the flash. On the home page, everything looks fine. The flash file is there and it does what it is supposed to do. However, when i go into any other page on the website, the area where the flash is supposed to be is just white. Nothing else happens, no Red X.... Nothing.

I'm not sure what i could be doing wrong because all the pages call for the header.php using
<?php get_header(); ?>

I've made other changes to the header, not having to do with flash, and they replicate across all other pages like they are supposed to.

Any ideas on what can cause this?

Thanks in advance
LVL 3
jkpc21Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gwkgCommented:
Are you calling the Flash file with relative links?  The base url changes as your navigate a Wordpress site and /flash/flash.swf won't always point to the same directory.

I usually add the base tag to my Wordpress sites to solve problems like this.

Try putting this inside your
<base href="<?php bloginfo('siteurl'); ?>" />

Open in new window

0
jkpc21Author Commented:
Using absolute paths, it still showed on the home page as i would expect it, but on all the other pages, rather than white it was now showing all black where the flash file is supposed to be.

This code that you gave me: <base href="<?php bloginfo('siteurl'); ?>" />
should i put this in the <head> </head>  of the header.php file?
0
gwkgCommented:
Yes that is where it goes, but if you are using absolute paths that isn't the problem.

Maybe if you post the code to your header.php file and the Source Code from the page that is having the problem, there will be a clue.
0
jkpc21Author Commented:
The first code is the header.php
The version of header.php attached does not use the absolute path.

The second code is the page.php page and is where i'm seeing the empty space where the flash is supposed to be
Header.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/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 bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>

<!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<!--[if IE 6]>
    <style type="text/css"> 
    body {
        behavior:url("<?php echo get_option('home'); ?>/wp-content/themes/gandhi/scripts/csshover2.htc");
    }
    </style>
<![endif]-->

<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />


<link rel="icon" href="<?php echo get_option('home'); ?>/wp-content/themes/gandhi/images/favicon.ico" />
<link rel="shortcut icon" href="<?php echo get_option('home'); ?>/wp-content/themes/gandhi/images/favicon.ico" />

<script type="text/javascript" src="<?php echo get_option('home'); ?>/wp-content/themes/gandhi/scripts/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo get_option('home'); ?>/wp-content/themes/gandhi/scripts/js/easySlider1.5.js"></script>
<script type="text/javascript" src="<?php echo get_option('home'); ?>/wp-content/themes/gandhi/scripts/js/menu.js"></script>
<script type="text/javascript">
 $(document).ready(function(){ 
  $("#slider").easySlider({
   prevText:'Previous',
   nextText:'Next',
   auto: true,
   continuous: true,
   pause: 3000
  });
 });
</script>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

</head>
<body>
<div id="page" class="clearfloat">
<div id="head">
	<div id="head-top" class="clearfloat">									
		<ul id="menu" class="left clearfloat">
 			<?php wp_list_pages('sort_column=menu_order&title_li='); ?>
		</ul>					
		<?php include (TEMPLATEPATH . '/searchform.php'); ?> 		
	</div>
	<div id="head-bottom">
	<img style="float:left; padding-left:10px;" src="/wp-content/themes/gandhi/images/globe.gif" alt="name"/>
                   
<div class="mainheaderad">
<object width="255" height="85">
<param name="movie" value="BannerRotatorComplete.swf">
<embed src="BannerRotatorComplete.swf" width="255" height="85">
</embed>
</object>
</div>



		<div id="headbottom-center-text">
			<div id="headbottom-center-title">
				<strong><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></strong>	
			</div>
                            			<div id="headbottom-center-body">
				<?php bloginfo('description'); ?>
			</div>
		</div>
	</div>
</div>

------------------------------------------------------------------
Page Template (page.php)

<?php get_header(); ?>
<?php include(TEMPLATEPATH . '/l_sidebar.php'); ?>
	<div id="content">
	
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		
	<div class="post" id="post_<?php the_ID(); ?>">

	<span class="breadcrumbs">
	<? if (is_front_page()) 
		{ ?> 
			<a href="<?php echo get_option('home'); ?>/">Home</a>
	 <? } 
		else 
	    { ?>
			<a href="<?php echo get_option('home'); ?>/">Home</a> &raquo; <?php the_title(); 
	    } ?>
	</span>
		
	<h2 class="title"><? if (is_front_page()) { echo ""; } else { the_title(); }  ?></h2>
		
		<div class="entry clearfloat">
		<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

		<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

		</div>
		
	<?php //edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

	</div>
		
	<?php endwhile; endif; ?>

	</div>

<?php include(TEMPLATEPATH . '/r_sidebar.php'); ?>
<?php get_footer(); ?>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.