Jump to content
Sign in to follow this  
lupael

Custom WHMCS Template

Recommended Posts

Hello,

I have a website with PHP header and footer

 

Header location: http://www.uscloudhost.com/header.php

and Footer location: http://www.uscloudhost.com/includes/footer.php

 

 

At the time of editing http://www.uscloudhost.com/clients/templates/default/header.tpl I'm putting <?php include('header.php'); ?>

 

and for footer editing http://www.uscloudhost.com/clients/templates/default/footer.tpl I'm putting <?php include('includes/footer.php') ?> at the end of that file.

 

But nothing happain. Custom Header and Footer are not showing. Do I have to add any code before or after header calling code?

Share this post


Link to post
Share on other sites

use

{php}
include '/full/path/to/header.php';
{/php}
{php}
include '/full/path/to/footer.php';
{/php}

 

you can't use <?php directly inside .tpl files

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated