Just Hosting Theme for WHMCS

This post continues explaining how to setup the Just Hosting Theme for WHMCS going from my original post: Getting Started With The Just Hosting Theme for WHMCS

Here is a recap of what is needed to set everything up

What you will need


So going from where we were in our previous post the next thing we will need to do is change the logo, unless of course you want to call your site just hosting. The logo is located under images/logo.png and we will also find the small version of the logo under images/logo_small.png. I am not sure of the exact font used, it may be in the documentation but I did not look for very long. I used a similar font called Banque Gothique RR Extra Bold Extra Condensed and applied a text reflection, if you don't know how to apply a reflection you can follow this free photoshop tutorial which should also be similare to what you would do in gimp or any other image editor. For the small logo I changed the size of the logo.png to 107px wide and kept the proportions.

Now I finally have a logo that matches my domain, but I need to change the title of the page that still says Just Hosting. Opening up our index.html file we will find the title tags on line 5 and in between these tags you will see "Just Hosting", I changed this to say "Zunem - Professional hosting services at affordable prices", adding the name of my site and adding the slightly ajusted version of the slogan that comes with the template. If this is going to be a professional company you may want to consider using a different slogan that sets you apart from the template and anyone else who might be using it.

As I am doing this I am simply going from top to bottom in the index.html file. After fixing the title I scrolled down to the bottom of the area and noticed some stylesheets and some where highlighted by my IDE letting me know that they were missing. Here is what I was looking at.

The reset.css and fancybox.css were not in the folder I am using for the theme and they did not seem to be in the template folder in whmcs. By the way I am using the PHPStorm IDE from Jetbrains which is an awesome tool when working with PHP. After removing the stylesheets I was simply left with this.

After this you should probably upload these and commit your changes to make sure it didn't affect your site in any way, if it does then add the code back again and don't worry about removing them.

Next I find the block of code which defines the header of my page and defines the text which is shown there. This is what the code should look like:

Just Hosting

Professional hosting services affordable prices

Sales enquiry: +44 0123 456 789

I will simply update this with the information for my website and since I don't have a sales phone number yet I will change the number to my email instead. At this time I'm not worrying about getting spam but if you want to prevent bots from getting your email you can read my earlier post: Hide your email from parsers and email spiders. Here is the code I have after changing the text.


Professional hosting services at affordable prices

Sales enquiry: sales@zunem.com

After this we will find the boxes or plans which we changed in the previous guide, these are commented to make it easy to understand. I like the plans the way they are and will leave the text the way it is. If you are new to html you should simply be able to edit the text between the tags and not have to worry about messing up the layout. Here is the code for the first block, the other two blocks are pretty much the same.


  • 100 MB space

  • 1GB Monthly Transfer

  • 2 SQL databeses

  • Unlimited email accounts

  • FREE! for first 3months



That sums up most of what is needed to be edited, there is more text further down on the page which can easily be found and changed in the same matter as we have done so far. You can find the text by viewing your template as a normal website and copying the text you want to edit and then using the find function in your editor to find where the text is in the HTML. Also don't forget to change the text in your footer.

Getting the forms working

So there are two forms at the bottom of the page. The registration form will send you an email via the register.php file and the login for customers does nothing. Unfortunately the registration form doesn't really work with whmcs but we can change it slightly to accommodate for this. I removed the username and email fields and left the domain field. Then I changed it so that the form would take the customer to the order form for the starter package. Let me explain what I did, here is the code I started with.


if you don´t provide extension we use our domain

This will be your identification in our system

We wan´t use it for marketing purposes

By registering you accept terms and conditions

To begin with I opened up the javascript file which currently prevents the form from going to a new page, this is found under js/site.js and I removed the following code:

$(function() {
$("#register_button").click(function() {

var domain = $("#domain").val();
var username = $("#username").val();
var email = $("#email").val();
var plan = $("#plan").val();
var dataString = '&domain='+ domain + '&username=' + username + '&email=' + email + '&plan=' + plan;

if(domain=='' || username=='' || email=='' || domain=='Please enter domain' || username=='Choose username' || email=='Your email')
type: "POST",
url: "register.php",
data: dataString,
success: function()

return false;

By removing this we can now submit our form like we want. I then went ahead and changed the form action on the index.html page, here is my current code for the form which now has my whmcs url.

Then for the domain field I changed the name to sld as this is what whmcs used to get the domain when entered through a form. Unfortunately my solution won't account for someone typing in a domain extension, this would require either some javascript or php. Here is my domain field with the updated name.

I also removed some of the errors and success messages at the bottom, the code I ended up with looked like this.


if you don´t provide extension we use our domain

By registering you accept terms and conditions

Now to fix our login form, this will be a little easier as it matches with the input fields that whmcs and has no javascript added to it. This is the code I start with in the index.html file.


If you forgot your passoword just enter your email and click here

All I have to do here is change the form action from # to link to the dologin.php file which handles the login in whmcs. The link I end up with is http://zunem.com/whmcs/dologin.php and here is the final code.


If you forgot your passoword just enter your email and click here

That's all the customization you need to get up and going with your site. I hope the guide has helped, please leave a comment with any feedback or questions!


Getting Started With The Just Hosting Theme For WHMCS
Posted: 2013-02-04T00:49:30+01:00

[...] Read my continued post here [...]

Leave a comment