How to modify the template

From HAA Best Practices Wiki
Revision as of 20:23, 25 November 2009 by WikiSysop (talk | contribs) (Created page with 'The appearance of the site is controlled by the Lavinya6 template. You can substitute another template from the many that are available on the Web or you can modify the Lavinya6…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The appearance of the site is controlled by the Lavinya6 template. You can substitute another template from the many that are available on the Web or you can modify the Lavinya6 template. In order to modify the template you need to understand how the page is constructed. This is fairly complicated and requires an understanding of html and css. It's not for the faint of heart.

The basic structure of the page is controlled by the file joomla/templates/lavinya6/index.php. This file outputs a series of div's and tables that set up the basic structure of the page. It also includes the joomla components and modules within the page. There is no formatting output by index.php, and (with some exceptions) none by the modules. Instead the formatting comes from the Lavinya6 template file.

The template file is in joomla/templates/lavinya6/css/template.css. This file defines the formatting for various elements and classes.

In order to make changes, you must first determine which class/element you wish to change and then edit template.css to add/modify that element. You can find the names of the classes and elements in this pdf file. (I created the file be looking at index.php, and I don't guarantee that it's 100% accurate but it should be good enough for most purposes.

Return to main Master Template page