Check out our premium WHMCS templates, everything you need for a reseller hosting business! Learn More

If your template isn't listed here it means that all pages are full-width by default

All of our WHMCS Themes allow you to make a page use the full width available (no sidebar) quite easily.

For the sake of this tutorial we’ll assume that you’ve created a page named custom.php and you want to remove the default sidebar on this page.

Note, the text used between the double quotes for each if filename = "" is the page name without the .php extension. So as you can see register.php (register), clientarea.php (clientarea), creditcard.php (creditcard) & cart.php (cart) are already setup to use full width.

Eco Net

Firstly open the following file:

/templates/YOUR_TEMPLATE/header.tpl

scroll down and find the following code:

change this to:

Lastly open the following file:

/templates/YOUR_TEMPLATE/footer.tpl

scroll down and find the following code:

change this to:

As you can see with box edits all we have done is add or $filename eq "custom" to the end of each statement

When visiting your custom.php page you should now see it load using the full width without the sidebar.

 

Leave a comment

Let us know what you think!

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