Create a simple Joomla 1.5 template
This tutorial will show you how to create a simple Joomla 1.5 template. You can get ideas how to create your new Joomla template from our
Free Joomla templates gallery.
How to create a basic Joomla 1.5 template?
First, open the "templates" directory in your Joomla installation. Then create a subfolder in it named "tutorial_template". All the files of your template will reside in it.
Inside your new directory, create a file called
index.php, and another named
templateDetails.xml. Then create a folder named
css and in it - a new file name
template.css. In order to create these files, you can use a simple Notepad and store the files on your computer, and upload them later via
FTP or the
File Manager of your cPanel.
Those are the basic files that each Joomla template needs to function properly. O
index.php - Specifies the available module positions and the path to your Stylesheet file. This is the main "section" of your template;
templateDetails.xml - This is a system file that provides information about your template to the Joomla application;
css/template.css - The stylesheet file of your template. It defines the looks of your website;
Now, let's take a detailed look on what each file should contain:
The index.php file should start with:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>