How to Create a Template (.tpl) File for WHMCS?

> Please login to your cPanel account

> Please click the file manager

> Please go to the following directory inside of your WHMCS root directory templates/name-of-template//

> Please click on the file button

> Please enter the file name like abc.tpl

> Please click on the create new file button

 

ADD HTML

> Please right-click on the .tpl file you created and select Edit

> Please enter the HTML like the below example

 

<h3>This is my custom WHMCS page's content</h3>

<p>I used the code found <a href="https://developers.whmcs.com/advanced/creating-pages/" target="_blank" title="Click here to navigate to WHMCS Support to obtain the code needed for creating a custom page.">here</a>.</p>

<p>I put that code into a file named: </p>

<p><code>mypage.php</code>, which resides in the root directory (where my WHMCS is installed).</p>

<p>Now, I can write HTML into the file named:</p>

<p><code>mypage.tpl</code>, located in the templates/six/ directory. Any HTML I save into that file, will be displayed on my new custom page.</p>

 

> Please click on the save changes button

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Access MailServer Configuration Options?

> Please login to your WHM account > Please Search for “mailserver”  > Please click on...

How to Switch Mailserver Between Mdbox and Maildir in WHM?

> Please login to your cPanel account > Please search for the “mailbox” in the search box...

How to configure the exim settings with the basic editor?

> Please login to your WHM account > Please search with “exim” in the search box >...

How to configure the exim settings with the Advance editor?

> Please login to your WHM account > Please search with  “exim” in the serch box >...

How to Backup Exim Configuration?

> Please login to your WHM account > Please search “exim” in the search box > Please...

Powered by WHMCompleteSolution