Download Template Code
Norm Douglas has spoken and presented at many Joomla days around Australia.
He is often asked for the "code doohickies" that he uses to style his blogs.
Well at great expsense to the management (well actually only about 15 minutes of my time), here is the code just for you.
Remember this is NOT A PLUGIN THAT YOU INSTALL.
Please understand that this code will provide you immense benefits and so many automatically generated page classes you won't know what to do with them all.
So for this benefit you will need to do a little work and get your hands dirty.
This file will give you the following
- Page classes based on your menu structure
- Page ID's based on your menu and sub menu structure
- Page class based on your article alias.
- Logged in and Logged out page class
- Home or not home page class
We couldn't build sites without this.
The attached download simple contains a txt file that has the code blocks contained and commented.
Essentially you need to open your primary index file of your template and or the "opening" block file (many templates use a framework instead of one single file).
The follow the instructions contained within the txt file.