Recent Blogs
-
Upgrade Joomla
-
How to design a Joomla website
-
What is Joomla?
-
Joomla Page Titles Module
-
Joomla FFmpeg Hosting
-
Working with Joomla
-
Social Networks and SEO
-
Blogging with Joomla
-
Joomla 1.7 For Web Sites
-
Custom Joomla Template Styling
-
Bespoke Custom Joomla Templates
-
Search Preview? You need it!
-
Introduction Articles in Joomla
-
Advertising Rules on Websites
-
Sef404 Virtuemart Pagination
-
Why Upgrade to IE9?
-
Expanding Joomla Content
-
Google's Goal
-
Meta Tags Help
-
E-Commerce Made Easy!
-
Joomla Installation
-
Joomla SEO Check
-
Improve your Joomla web site
-
Joomla htaccess re-write
-
Joomla Template Parameters
-
Email Safety
-
Create a hidden menu
-
Joomla1.6
Custom Joomla Template Styling
Have you ever wanted to have a specific style for each category or individual page on your Joomla site? When you go to your About us page, the page content may have a blue style, and when you go to your contact us page, this may have a green style etc etc
This is not done by having many templates but simply by editing your template files.
So lets look at one of the default templates within Joomla called JaPurity for example. What we need to do is open up the index.php file from the template files in a text editor or a program such as dreamweaver.
What we are going to do is wrap the entire contents of the information that will appear in the template in a div tag that will automatically create a new id for every page of your joomla website. This means that you will be able to create unique css styles for each page using this id.As an example your home page would have a div like this <div id="color_1">the joomla site here </div> and for the about page you would have <div id="color_2">the joomla site here </div> etc etc so you could style your fonts to be different, your title colors background colours modules etc etc so how do we do this?
All you need to do is open the index.php file and find the following code
Either before or after this it is upto you add the following
Now at the bottom of the index.php find this line
and just before it add this </div>
That's it, you are done! Now you can save this file and upload it to the server and over write your current index.php file with one. Now when you go to the site you can inspect the code using firebug if you use Firefox and you will see that you have
you will be able to now add the module classes ect to this by doing the following
