How To Write A Template

Table of contents:

How To Write A Template
How To Write A Template

Video: How To Write A Template

Video: How To Write A Template
Video: Word 2016 - Create a Template - How to Make u0026 Design Templates in Microsoft Office 365 - MS Tutorial 2024, November
Anonim

Joomla sites are created based on ready-made templates. You may be surprised how many different templates in Joomla are for any topic and for any type of site. However, if you want to create your own template, you can easily do so.

How to write a template
How to write a template

Instructions

Step 1

Create index.php, templateDetails.xml files in your templates folder, and template.css in css subfolder. To create these files, a regular "Notepad" is suitable, and the extension can be changed in the file manager. If such files already exist on the hosting server, you just need to edit them. This can be done using the manager built into the server.

Step 2

Fill in the contents of the generated files based on the tasks they should perform. The main index.php file defines the position of the module and specifies the path to the Stylesheet file. The templateDetails.xml file contains information about your Joomla template, and css / template.css describes the appearance of the site.

Step 3

Describe the appearance of the template and the entire site where this template will be applied in the template.css file from the css folder. Save your changes and check the result by loading the page in a browser. It is worth using multiple browsers to identify possible compatibility issues early in the template design phase.

Step 4

To add the created template to the administrative panel, upload the template files through the dialog for adding templates, specifying their location using the "Browse" button. Click on the "Default" button to make this template the default.

Step 5

With css styles you can create whatever templates you want. Perhaps other site creators will like your templates as well - put them on your site, attaching examples of page appearance. Also, do not forget that copies of files for your site must be saved on an information medium. In critical situations, you can restore all the data that was on your resource.

Recommended: