Skip to content

How to hide the content on the front page of a Joomla site?

To do this open the the your 1.5. Joomla template  index.php

find this line of code:

<jdoc:include type="component" />

and change it to this:

<?php if (JRequest::getVar('view') != 'frontpage'): ?>
<jdoc:include type="component" />
<?php endif ?>

Another way:

<?php if(!$tmpTools->isFrontPage()) : ?>
<?php endif ; ?>

Third way:)

<?php $Itemid = JRequest::getInt('Itemid');
if ($Itemid != 1): ?>
<?php endif ; ?>

Published inCodingJoomla

Be First to Comment

Leave a Reply

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