milestonemedia Posted June 28, 2010 Share Posted June 28, 2010 Is it possible to change the header.tpl to header.php i know how to save the file as a .php but how do you change the callheader.tpl function to header.php If this is not possible can someone please tell me how to use php in the header file as when i use the code below i get no response but it works fine as a php file. <?php require('wp-blog-header.php'); ?> <link rel="stylesheet" type="text/css" href="http://www.mysite.com/wp-content/themes/parallelus-unite/css/reset.min.css" /> <link rel="stylesheet" type="text/css" href="http://www.mysite.com/wp-content/themes/parallelus-unite/css/menu.min.css" /> <link rel="stylesheet" type="text/css" href="http://www.mysite.com/wp-content/themes/parallelus-unite/css/fancybox.css" /> <link rel="stylesheet" type="text/css" href="http://www.mysite.com/wp-content/themes/parallelus-unite/css/tooltip.min.css" /> <link rel="stylesheet" type="text/css" href="http://www.mysite.com/wp-content/themes/parallelus-unite/style-default.css" /> <link rel="stylesheet" href="http://www.mysite.com/wp-content/themes/parallelus-unite/style-skin-4.css" type="text/css" id="SkinCSS" /> <?php $posts = get_posts('numberposts=10&order=ASC&orderby=post_title'); foreach ($posts as $post) : start_wp(); ?> <div id="MenuWrapper"> <div id="MainMenu"> <div id="MmLeft"></div> <div id="MmBody"> <!-- Main Menu Links --> <ul class="sf-menu"> <li class="<?php if (is_home()) : echo 'current'; endif; ?>"><a href="<?php bloginfo('url'); ?>">Home</a></li> <?php printMenuItems(); ?> </ul> <ul class="sf-menu"> <script type="text/javascript" src="http://www.mysite.com/support/image.php?v=PGEgaHJlZj1cImphdmFzY3JpcHQ6dm9pZCh3aW5kb3cub3BlbignaHR0cDovL3d3dy5taWxlc3RvbmVtZWRpYS5pZS9zdXBwb3J0L2xpdmV6aWxsYS5waHAnLCcnLCd3aWR0aD01OTAsaGVpZ2h0PTU1MCxsZWZ0PTAsdG9wPTAscmVzaXphYmxlPXllcyxtZW51YmFyPW5vLGxvY2F0aW9uPXllcyxzdGF0dXM9eWVzLHNjcm9sbGJhcnM9eWVzJykpXCIgPCEtLWNsYXNzLS0-PjwhLS10ZXh0LS0-PC9hPjwhPkxpdmUgSGVscCAoT25saW5lKTwhPkxpdmUgSGVscCAoT2ZmbGluZSk8IT4_"></script></ul> </div> <div id="MmRight"></div> </div> </div> <?php endforeach; ?> 0 Quote Link to comment Share on other sites More sharing options...
barco57 Posted June 28, 2010 Share Posted June 28, 2010 This page from the smarty docs may help http://www.smarty.net/manual/en/language.function.php.php 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.