Friday, August 10, 2007

How to make Joomla template - part 2.

So, here it comes - part 2.

If you haven't read part. 1 - go to How to make Joomla template - part 1.

All the rest, go on reading further...

So, after we end up making index.php, we are ready for css. In the folder named "css" make a file called "template_css" and save it as .css file.

In this file you can define the look of your layers, fonts, backgrounds etc.

Be carefull with Joomla. After you define all the significent pieces of your index.php, there is a whole bunch of classes which are defined form Joomla for their modules, content and components. Every module that you additionaly install, also has its own css defined look. You need to find them and change them all.

Here are a few of the classes which you also have to define if you don't want that Joomla use its own:
Off course, these are just a few of them. To understand importance of css specifity (which CSS rule will be applied in browser if you have more of them applied) read this great article from Smashing Magazine - CSS Specifity - things you should know.

All the images that you use in your css file, put in folder "images" (which we created in part 1. of this tutorial).

After everything is done and you are happy with your design, make a list of all the files in your templateDetails.xml file which we also created in part 1.

It should look something like this:


Also, don't forget to make a thumbnail preview of your template and save it under the name template_thumbnail.png in the same folder with your index.php.

This complete folder you can upload online to your online Joomla site by ftp manager or you can zip it and install it thru Joomla backend.

Thats it.

Quite simple... ;-))

If you have any questions, feel free to ask...

3 komentari:

Anonymous said...

Thank you for your two articles on Joomla templates : short and clear, two great (and rare) qualities!

Marina said...

Thank you, I'm glad you liked it. Hope it will help you :-)

Anonymous said...

I am new to Joomla and I needed to have a site running in a rush. Your article helped me a great deal. Many thanks -- Gwenaƫl, Paris, France.