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'): ?>
<div>
<jdoc:include type="component" />
</div>
<?php endif ?>

Another way:

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

Third way:)

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

Published inCodingJoomla