{"id":4472,"date":"2018-04-10T21:08:08","date_gmt":"2018-04-10T21:08:08","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2018\/04\/10\/how-to-create-a-custom-page-for-whmcs\/"},"modified":"2022-02-14T18:13:46","modified_gmt":"2022-02-14T23:13:46","slug":"how-to-create-a-custom-page-for-whmcs","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/","title":{"rendered":"How to Create a Custom Page for WHMCS"},"content":{"rendered":"<div class=\"in_this_tutorial\">\n<h2>In This Tutorial:<\/h2>\n<p><a class=\"btn btn-primary\" href=\"#create-php-file\" type=\"button\">Create PHP File<\/a> <a class=\"btn btn-primary\" href=\"#add-php-code\" type=\"button\">Add PHP Code<\/a> <a class=\"btn btn-primary\" href=\"#create-tpl-file\" type=\"button\">Create Template File<\/a> <a class=\"btn btn-primary\" href=\"#add-html-code\" type=\"button\">Add HTML Code<\/a><\/p>\n<\/div>\n<p><abbr title=\"Web Host Manager Complete Solution\">WHMCS<\/abbr> is a system designed to automate and manage many common web hosting tasks for resellers. For instance, WHMCS can handle the point of sale, billing, and setup of a new account, including provisioning it on the server.<\/p>\n<p>WHMCS creates pages based on the modules that are installed and the functions that are enabled by the administrator\/webmaster. If you want to create a unique <i>client area<\/i> page, you can manually <em>create the necessary <i>.php<\/i> and <i>.tpl<\/i> files to build a custom page<\/em>. By completing this guide, you can learn <strong>how to create a custom page that is compatible with WHMCS.<\/strong><\/p>\n<p><a name=\"create-php-file\"><\/a><\/p>\n<h2>Create a PHP (.php) File<\/h2>\n<p>First, a <em>.php<\/em> file needs to be created. This file will reside in your WHMCS root directory.<\/p>\n<p><a name=\"find-whmcs-root-dir\"><\/a><\/p>\n<div class=\"alert alert-info\" role=\"alert\">\n<p><b>NOTE:<\/b> If you are unsure of the location of your WHMCS installation, click the button below for additional help.<\/p>\n<p><button class=\"btn btn-primary\" type=\"button\" data-target=\"#whmcs-root-dir\" data-toggle=\"collapse\">Find Your WHMCS Directory<\/button><\/p>\n<div id=\"whmcs-root-dir\" class=\"collapse out\">\n<h3>How to Locate Your WHMCS Root Directory<\/h3>\n<p>To locate your WHMCS directory root directory, <a title=\"Click here to navigate to our guide and learn how to find the document root directory for your website.\" href=\"\/support\/website\/where-to-upload-files\/\" target=\"_blank\" rel=\"noopener noreferrer\">find the document root directory<\/a> for your domain. If your WHMCS root directory is also the document root directory for your website (ie. you access the website using just your domain <code>https:\/\/www.example.com\/<\/code>), then you should see the following directories inside of your document root directory for your domain:<\/p>\n<ul>\n<li>admin<\/li>\n<li>assets<\/li>\n<li>attachments<\/li>\n<li>downloads<\/li>\n<li>feeds<\/li>\n<li>inclues<\/li>\n<li>lang<\/li>\n<li>modules<\/li>\n<li>oauth<\/li>\n<li>pipe<\/li>\n<li>resources<\/li>\n<li>status<\/li>\n<li>templates<\/li>\n<li>templates_c<\/li>\n<li>vendor<\/li>\n<\/ul>\n<p><b>Still unsure?<\/b> The WHMCS directory will also include many <i>.php<\/i> files. Try openning a few <i>.php<\/i> files. You can identify files related to WHMCS by comparing the first few lines in the file with the code similar to the following example:<\/p>\n<pre class=\"code_block\">&lt;?php \/\/ICB0 56:0 71:ac9e                                                     ?&gt;&lt;?php \/\/00ee8  \/\/ *************************************************************************    \/\/ *                                                                       *    \/\/ * WHMCS - The Complete Client Management, Billing &amp; Support Solution    *    \/\/ * Copyright (c) WHMCS Ltd. All Rights Reserved,                         *    \/\/ * Version: 7.5.0 (7.5.0-release.1)                                      *    \/\/ * BuildId: a354371.338                                                  *    \/\/ * Build Date: 02 Apr 2018                                               *    \/\/ *                                                                       *    \/\/ *************************************************************************    \/\/ *                                                                       *    \/\/ * Email: info@whmcs.com                                                 *    \/\/ * Website: https:\/\/www.whmcs.com                                         *    \/\/ *                                                                       *    \/\/ *************************************************************************    \/\/ *                                                                       *    \/\/ * This software is furnished under a license and may be used and copied *    \/\/ * only  in  accordance  with  the  terms  of such  license and with the *    \/\/ * inclusion of the above copyright notice.  This software  or any other *    \/\/ * copies thereof may not be provided or otherwise made available to any *    \/\/ * other person.  No title to and  ownership of the  software is  hereby *    \/\/ * transferred.                                                          *    \/\/ *                                                                       *    \/\/ * You may not reverse  engineer, decompile, defeat  license  encryption *    \/\/ * mechanisms, or  disassemble this software product or software product *    \/\/ * license.  WHMCompleteSolution may terminate this license if you don't *    \/\/ * comply with any of the terms and conditions set forth in our end user *    \/\/ * license agreement (EULA).  In such event,  licensee  agrees to return *    \/\/ * licensor  or destroy  all copies of software  upon termination of the *    \/\/ * license.                                                              *    \/\/ *                                                                       *    \/\/ * Please see the EULA file for the full End User License Agreement.     *    \/\/ *                                                                       *    \/\/ *************************************************************************<\/pre>\n<\/div>\n<\/div>\n<div class=\"alert alert-success\" role=\"alert\">\n<p><b>NOTICE:<\/b> For our example, the URL for WHMCS is: <i>https:\/\/www.example.com\/whmcs<\/i>. The directory (aka: document root) on the server for <i>https:\/\/www.example.com<\/i> is: <i>public_html\/<\/i> and the WHMCS root directory is located at: <i>public_html\/whmcs\/<\/i> on the server.<\/p>\n<\/div>\n<p>WHMCS pages are implemented from <i>.php<\/i> files. Later in this guide, you can learn the <em>code to enter into the file<\/em>. However, in this section, you can learn the steps to take to <em>create the necessary <i>.php<\/i> file<\/em> to <strong>add a custom page to WHMCS<\/strong>.<\/p>\n<ol class=\"article_list\">\n<li><a title=\"Click here to navigate to our guide and learn how to log into your cPanel.\" href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into your reseller cPanel<\/a>.<\/li>\n<li>Navigate to the <b>File Manager<\/b>.<\/li>\n<li>Navigate to your <a title=\"Click here to scroll up to the button you can click on to learn how to locate your WHMCS root directory.\" href=\"#find-whmcs-root-dir\">WHMCS root directory<\/a>.<\/li>\n<li>Click the <b>File<\/b> button.<\/li>\n<li>In the pop-up, enter the name you would like to give to the file, for example <code>mypage.php<\/code> into the <b>New File Name:<\/b> field.<\/li>\n<li>Click the <b>Create New File<\/b> button.<\/li>\n<\/ol>\n<p><a name=\"add-php-code\"><\/a><\/p>\n<h2>Add the PHP Code<\/h2>\n<p>Once you have created a new <i>.php<\/i> file, you will need to enter some code into it. This code is obtained from <a title=\"Click here to navigate to the website for WHMCS's Support Documentation and learn more about the code needed for building a custom page in WHMCS.\" href=\"https:\/\/developers.whmcs.com\/advanced\/creating-pages\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">WHMCS&#8217;s Support Documentation<\/a> directly. For more information on the code, you can refer to their documentation. However, this code contains the &#8220;skeleton&#8221; of a page for WHMCS. In this section, you can learn how to <em>enter the necessary code into the <code>mypage.php<\/code> file<\/em>, created in the previous section.<\/p>\n<ol class=\"article_list\">\n<li><a title=\"Click here to navigate to our guide and learn how to log into your cPanel.\" href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into your reseller cPanel<\/a>.<\/li>\n<li>Click on <b>File Manager<\/b>.<\/li>\n<li>Navigate to your <a title=\"Click here to scroll up to the button you can click on to learn how to locate your WHMCS root directory.\" href=\"#find-whmcs-root-dir\">WHMCS root directory<\/a>.<\/li>\n<li>Open the .php file you created in the previous section. To open the file, right-click on it, then click <b>Edit<\/b>.\n<div class=\"alert alert-success\" role=\"alert\">\n<p><b>NOTICE:<\/b> If a pop-up is displayed regarding the encoding of the file, simply click the <b>Edit<\/b> button to proceed to open the file with the default encoding.<\/p>\n<\/div>\n<\/li>\n<li>Copy&#8211; CTRL + C (on Mac: COMMAND + C) and paste&#8211; CTRL + V (on Mac: COMMAND + V) the following code into the file. Please note that this code is <em>commented out<\/em> so that it displays properly in WordPress; you will need to remove the <code>!--<\/code> from the opening PHP tag when you are ready to use this code.\n<pre class=\"code_block\">&lt;!--?php\n\nuse WHMCSClientArea;\nuse WHMCSDatabaseCapsule;\n\ndefine('CLIENTAREA', true);\n\nrequire __DIR__ . '\/init.php';\n\n$ca = new ClientArea();\n\n$ca---&gt;setPageTitle('Your Page Title Goes Here');\n\n$ca-&gt;addToBreadCrumb('index.php', Lang::trans('globalsystemname'));\n$ca-&gt;addToBreadCrumb('mypage.php', 'Your Custom Page Name');\n\n$ca-&gt;initPage();\n\n\/\/$ca-&gt;requireLogin(); \/\/ Uncomment this line to require a login to access this page\n\n\/\/ To assign variables to the template system use the following syntax.\n\/\/ These can then be referenced using {$variablename} in the template.\n\n\/\/$ca-&gt;assign('variablename', $value);\n\n\/\/ Check login status\nif ($ca-&gt;isLoggedIn()) {\n\n    \/**\n     * User is logged in - put any code you like here\n     *\n     * Here's an example to get the currently logged in clients first name\n     *\/\n\n    $clientName = Capsule::table('tblclients')\n        -&gt;where('id', '=', $ca-&gt;getUserID())-&gt;pluck('firstname');\n        \/\/ 'pluck' was renamed within WHMCS 7.0.  Replace it with 'value' instead.\n        \/\/ -&gt;where('id', '=', $ca-&gt;getUserID())-&gt;value('firstname');\n    $ca-&gt;assign('clientname', $clientName);\n\n} else {\n\n    \/\/ User is not logged in\n    $ca-&gt;assign('clientname', 'Random User');\n\n}\n\n\/**\n * Set a context for sidebars\n *\n * @link https:\/\/docs.whmcs.com\/Editing_Client_Area_Menus#Context\n *\/\nMenu::addContext();\n\n\/**\n * Setup the primary and secondary sidebars\n *\n * @link https:\/\/docs.whmcs.com\/Editing_Client_Area_Menus#Context\n *\/\nMenu::primarySidebar('announcementList');\nMenu::secondarySidebar('announcementList');\n\n# Define the template filename to be used without the .tpl extension\n\n$ca-&gt;setTemplate('mypage');\n\n$ca-&gt;output();<\/pre>\n<\/li>\n<li>Click on the <b>Save Changes<\/b> button.<\/li>\n<\/ol>\n<p><a name=\"create-tpl-file\"><\/a><\/p>\n<h2>Create a Template (.tpl) File<\/h2>\n<p>Now that you have created the necessary <i>.php<\/i> file, you can create a <i>.tpl<\/i> file. This file will be where you can <em>save your HTML to design the custom page<\/em> you are creating for WHMCS. In this section, you can learn how to <em>create the necessary .tpl file<\/em> to <strong>design a custom page in WHMCS<\/strong>.<\/p>\n<ol class=\"article_list\">\n<li><a title=\"Click here to navigate to our guide and learn how to log into your cPanel.\" href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into your reseller cPanel<\/a>.<\/li>\n<li>Click on the <b>File Manager<\/b> icon.<\/li>\n<li>Navigate to the following directory inside of your <a title=\"Click here to scroll up to the button you can click on to learn how to locate your WHMCS root directory.\" href=\"#find-whmcs-root-dir\">WHMCS root directory<\/a>: <b>templates\/<i>name-of-template\/<\/i>\/<\/b>\n<div class=\"alert alert-info\" role=\"alert\">\n<p><b>NOTE:<\/b> Be sure to replace <i>name-of-template\/<\/i> with the actual directory name for your active template.<\/p>\n<\/div>\n<\/li>\n<li>Click the <b>File<\/b> button.<\/li>\n<li>In the pop-up, enter the name you would like to give to the file, for example <code>mypage.tpl<\/code> into the field <b>New File Name:<\/b>.<\/li>\n<li>Click the <b>Create New File<\/b> button.<\/li>\n<\/ol>\n<p><a name=\"add-html-code\"><\/a><\/p>\n<h2>Add HTML<\/h2>\n<p>Once you have a <i>.tpl<\/i> file and a <i>.php<\/i> file for your <strong>custom page<\/strong>, you may begin <em>desiging the page using HTML<\/em>. In this section, you can learn how to <em>add the HTML to your .tpl file<\/em> and <em>preview your page in your web browser<\/em>.<\/p>\n<ol class=\"article_list\">\n<li style=\"list-style-type: none;\">\n<ol class=\"article_list\">\n<li><a title=\"Click here to navigate to our guide and learn how to log into your cPanel.\" href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into your reseller cPanel<\/a>.<\/li>\n<li>Click on the <b>File Manager<\/b> icon.<\/li>\n<li>Navigate to the following directory inside of your <a title=\"Click here to scroll up to the button you can click on to learn how to locate your WHMCS root directory.\" href=\"#find-whmcs-root-dir\">WHMCS root directory<\/a>: <b>templates\/<i>name-of-template\/<\/i>\/<\/b>\n<div class=\"alert alert-info\" role=\"alert\">\n<p><b>NOTE:<\/b> Be sure to replace <i>name-of-template\/<\/i> with the template&#8217;s directory name for your active template.<\/p>\n<\/div>\n<\/li>\n<li>Right-click on the <i>.tpl<\/i> file you created and select <b>Edit<\/b>.\n<div class=\"alert alert-info\" role=\"alert\">\n<p><b>NOTE:<\/b> If a pop-up is displayed regarding the encoding of the file, simply click the <b>Edit<\/b> button to proceed to open the file with the default encoding.<\/p>\n<\/div>\n<\/li>\n<li>Now enter your HTML. For example:\n<pre class=\"code_block\">&lt;h3&gt;This is my custom WHMCS page's content&lt;\/h3&gt;\n\n&lt;p&gt;I used the code found &lt;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.\"&gt;here&lt;\/a&gt;.&lt;\/p&gt;\n\n&lt;p&gt;I put that code into a file named: &lt;\/p&gt;\n\n&lt;p&gt;&lt;code&gt;mypage.php&lt;\/code&gt;, which resides in the root directory (where my WHMCS is installed).&lt;\/p&gt;\n\n&lt;p&gt;Now, I can write HTML into the file named:&lt;\/p&gt;\n\n&lt;p&gt;&lt;code&gt;mypage.tpl&lt;\/code&gt;, located in the templates\/six\/ directory. Any HTML I save into that file, will be displayed on my new custom page.&lt;\/p&gt;\n<\/pre>\n<\/li>\n<li>Once you have entered your code, click on the <b>Save Changes<\/b> button.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Once you have saved the <i>.tpl<\/i> file with the code you would like (or using our example data), you can <em>visit the URL for that page from your web browser<\/em>. Simply open your browser and visit the following URL (example format):<\/p>\n<p><code>https:\/\/www.example.com\/whmcs\/mypage.php<\/code><\/p>\n<div class=\"alert alert-info\" role=\"alert\">\n<p><b>NOTE:<\/b> Be sure to replace <code>https:\/\/www.example.com\/whmcs<\/code> with your actual domain (and path) to your <a title=\"Click here to scroll up to the button you can click on to learn how to locate your WHMCS root directory.\" href=\"#find-whmcs-root-dir\">WHMCS root directory<\/a>. Additionally, be sure to change <code>mypage.php<\/code> to the actual name of the <i>.php<\/i> file you created (<u>not<\/u> the <i>.tpl<\/i> file).<\/p>\n<\/div>\n<p><b>Congratulations!<\/b> You now know how to <strong>create a custom page<\/strong> to use with your <strong>WHMCS<\/strong> installation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In This Tutorial: Create PHP File Add PHP Code Create Template File Add HTML Code WHMCS is a system designed to automate and manage many common web hosting tasks for resellers. For instance, WHMCS can handle the point of sale, billing, and setup of a new account, including provisioning it on the server. WHMCS creates<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/\"> Read More ><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4289],"tags":[],"class_list":["post-4472","post","type-post","status-publish","format-standard","hentry","category-whm"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create a Custom Page for WHMCS | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In this guide, you can learn how to create the necessary .php and .tpl files and the code to add to each file in order to create a custom page that is compatible for use with WHMCS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Custom Page for WHMCS | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this guide, you can learn how to create the necessary .php and .tpl files and the code to add to each file in order to create a custom page that is compatible for use with WHMCS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-10T21:08:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-14T23:13:46+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b\"},\"headline\":\"How to Create a Custom Page for WHMCS\",\"datePublished\":\"2018-04-10T21:08:08+00:00\",\"dateModified\":\"2022-02-14T23:13:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/\"},\"wordCount\":986,\"commentCount\":16,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"WebHost Manager (WHM)\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/\",\"name\":\"How to Create a Custom Page for WHMCS | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2018-04-10T21:08:08+00:00\",\"dateModified\":\"2022-02-14T23:13:46+00:00\",\"description\":\"In this guide, you can learn how to create the necessary .php and .tpl files and the code to add to each file in order to create a custom page that is compatible for use with WHMCS.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create a Custom Page for WHMCS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/john-paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a Custom Page for WHMCS | InMotion Hosting","description":"In this guide, you can learn how to create the necessary .php and .tpl files and the code to add to each file in order to create a custom page that is compatible for use with WHMCS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/","og_locale":"en_US","og_type":"article","og_title":"How to Create a Custom Page for WHMCS | InMotion Hosting","og_description":"In this guide, you can learn how to create the necessary .php and .tpl files and the code to add to each file in order to create a custom page that is compatible for use with WHMCS.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2018-04-10T21:08:08+00:00","article_modified_time":"2022-02-14T23:13:46+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b"},"headline":"How to Create a Custom Page for WHMCS","datePublished":"2018-04-10T21:08:08+00:00","dateModified":"2022-02-14T23:13:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/"},"wordCount":986,"commentCount":16,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["WebHost Manager (WHM)"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/","name":"How to Create a Custom Page for WHMCS | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2018-04-10T21:08:08+00:00","dateModified":"2022-02-14T23:13:46+00:00","description":"In this guide, you can learn how to create the necessary .php and .tpl files and the code to add to each file in order to create a custom page that is compatible for use with WHMCS.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/whm\/how-to-create-a-custom-page-for-whmcs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Create a Custom Page for WHMCS"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/john-paul\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4472"}],"version-history":[{"count":12,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4472\/revisions"}],"predecessor-version":[{"id":94144,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4472\/revisions\/94144"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}