Huge Christmas Sale! - Save 20% on your order using coupon: christmas16 during checkout Learn More
 
 

If you've followed our WHMCS custom pages guide you'll notice that by default they will not allow you to define a custom page title, meta description & meta tags. In this tutorial you'll learn how to add this functionality to any pages you create.

As an example let's say you create a custom page named custom.php.

Open the following file (contains the SEO functions):

/templates/your_template/includes/functions-seo.tpl

You can use the following code as a base for custom pages:

Note the custom reference, replace this with the filename of the custom page you created without the .php extension. e.g:

custom.php = custom (as seen above)
custom-hosting.php = custom-hosting

Once you've edited the page reference and added your page title, meta description & meta tags paste the code between lines 11 & 13 of the functions-seo.php file.

Save the file and re-load the page and you should now see the SEO functions applied.

whmcs services

 

Leave a comment

Let us know what you think!

 
 
the best whmcs templates
premium html code - scripts
custom banner design service
 
 
Top