Open up /includes/classes/class.categories.php find this line:
$GLOBALS["AL_CLASS_TEMPLATE"]->SetTemplate("Categories");
(Should be there twice, near each other).
the "Categories" bit means to use /templates/{your template}/Categories.html
So if you change it to:
$GLOBALS["AL_CLASS_TEMPLATE"]->SetTemplate("Blah");
It will use /templates/{your template}/Blah.html
We can use this in our favour by creating a set of if statements like this:
if($this->_catId == 1){
$template = "FirstCategory";
}elseif($this->_catId == 5){
$template = "AnotherCategory";
}else{
$template = "Categories";
}
$GLOBALS["AL_CLASS_TEMPLATE"]->SetTemplate($template);
Above, you will see the if statements like:
if($this->_catId == 5){
On the right is the CategoryID of the category you want to have the template on the next line. To get the CategoryID of a category you want to have a custom layout, hover over the Edit link for it in the Control Panel and the URL for it will have &catId=5 and that number there is the one you want in your if statement. Then you can create a new template file as /templates/{your template}/AnotherCategory.html
If you have any troubles with this guide, send in a support ticket via your client area.

The article has been updated successfully.