How to write a template for the website

How to write a template for the website

Hostings give an opportunity to create the websites on Joomla. This system abounds with a set of subjects and templates therefore even the beginner will easily cope with creation of design for the resource. However if you decided to write own unique template, then and here you will not meet special difficulties.

Instruction

1. Open the folder with templates and create in it the index.php and templateDetails.xml files, it is also necessary to add the template.css file in the css folder. For this purpose you can use the normal text editor or a notepad then change expansion in the manager of lines. If on the hosting server there are already these files, then it is not necessary to create new, just edit available by means of the built-in manager.

2. Fill out the created files with necessary information which will correspond completely to objectives. The index.php file is responsible for the provision of the created template and modules and also notes path to the Stylesheet file. All information on a template is specified in the templateDetails.xml file, and the appearance of the website undersigns for the template.css file.

3. Write a template for the website and save data in the template.css file. After that load the page in the browser to check the turned-out result. Also it is recommended to use several popular browsers for check of a template to define all possible compatibility issues at a development stage.

4. Open a dialog of adding of templates and load its files on the admin panel of the website. Check near the inscription "Default" to expose this template by default on the website. Thus, your template will be stored in the css folder. If you want to share the development with other web designers, then can always copy this file and upload to the website or the file hosting service for downloading.

5. Use the Front Page program or other application for creation of templates. This way suits those who are not strong in web programming, but wishes to create own design for the website. This software is rather clear and easy in use.

Author: «MirrorInfo» Dream Team


Print