Joomla – Making a Custom Home Page

Giving the Front Page a different style from other pages – from Joomla Docs

I specifically used the following CSS method from the above post:

Assigning CSS style on the body element in your template

Edit the file “index.php” in your default template directory

$active = JFactory::getApplication()->getMenu()->getActive();
<body class="<?php echo $active->alias; ?> ">

Then, you can write CSS rules which style the component differently on the body.home page.

body.home .AsideLeft {
/* different rule for homepage */

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *