• Ok so i’ve been trying to change my header on different sub-pages. i have already changed my front page header, but each sub-page represents a separate service we provide within our business. i’ve done some searching and i know i need to use the is_page() function, but can’t quite figure out how. I already have this code in place

    <?php if (is_front_page()) { ?>
    			<div id="mediaspace">
    				<script type='text/javascript'>
    			  		var so = new SWFObject('/wp-content/uploads/2010/07/tlg_newheader2.swf','ply','950','340','9','#000000');
    					so.addParam('allowfullscreen','true');
    					so.addParam('allowscriptaccess','always');
    					so.addParam('wmode','transparent');
    					so.write('mediaspace');
    				</script>
    			</div>
    <?php } else {
    echo '<div style="width:100%;text-align:center;margin-top:10px;"><img src="https://www.languageresourceandtraining.com/wp-content/uploads/2010/07/LRT.png" /></div>';
    }
     ?>

    any help would be greatly appreciated

Viewing 1 replies (of 1 total)
  • Thread Starter Fgarcia1986

    (@fgarcia1986)

    ok i actually figured it out now i’m working on making all child pages having the same header without having to just do a copy paste job

Viewing 1 replies (of 1 total)
  • The topic ‘Trying to change my header on sub-pages’ is closed to new replies.