Difference between revisions of "How do you get rid of the breadcrumbs?"

From Joomla! Documentation

m (clean up categories with <noinclude> tags)
(Add in version tag and add in 2.5 and 3.1 replace code)
Line 1: Line 1:
{{JVer|1.5}}{{JVer|1.6}}<br />
+
{{version|1.5,2.5,3.1}}
 
Breadcrumbs are a core module in Joomla! and can be enabled or disabled for all pages directly through the Module Manager in the Back-end. Just navigate to the Module Manager, find the Breadcrumbs Module, and disable it.
 
Breadcrumbs are a core module in Joomla! and can be enabled or disabled for all pages directly through the Module Manager in the Back-end. Just navigate to the Module Manager, find the Breadcrumbs Module, and disable it.
  
Line 6: Line 6:
 
<source lang="php"><jdoc:include type="module" name="breadcrumbs" /></source>
 
<source lang="php"><jdoc:include type="module" name="breadcrumbs" /></source>
  
: with
+
: with {{JVer|1.5}}
 
<source lang="php">
 
<source lang="php">
 
<?php if( JRequest::getVar( 'view' ) == 'frontpage' ) { ?>
 
<?php if( JRequest::getVar( 'view' ) == 'frontpage' ) { ?>
 +
    <p>&nbsp;</p>
 +
<?php } else { ?>
 +
    <p>You are here: <jdoc:include type="module" name="breadcrumbs" /></p>
 +
<?php } ?>
 +
</source>
 +
 +
:with {{JVer/multi|2.5,3.1}}
 +
<source lang="php">
 +
<?php
 +
$app = JFactory::getApplication();
 +
$menu = $app->getMenu();
 +
if ($menu->getActive() == $menu->getDefault()) { ?>
 
     <p>&nbsp;</p>
 
     <p>&nbsp;</p>
 
<?php } else { ?>
 
<?php } else { ?>

Revision as of 13:37, 29 April 2013

Breadcrumbs are a core module in Joomla! and can be enabled or disabled for all pages directly through the Module Manager in the Back-end. Just navigate to the Module Manager, find the Breadcrumbs Module, and disable it.

To prevent the breadcrumb pathway from displaying on the Frontpage only, change the code of the index.php file of your template as follows:

Replace
<jdoc:include type="module" name="breadcrumbs" />
with Joomla 1.5
<?php if( JRequest::getVar( 'view' ) == 'frontpage' ) { ?>
    <p>&nbsp;</p>
<?php } else { ?>
    <p>You are here: <jdoc:include type="module" name="breadcrumbs" /></p>
<?php } ?>
with  Joomla 2.5 Joomla 3.1
<?php
$app = JFactory::getApplication();
$menu = $app->getMenu();
if ($menu->getActive() == $menu->getDefault()) { ?>
    <p>&nbsp;</p>
<?php } else { ?>
    <p>You are here: <jdoc:include type="module" name="breadcrumbs" /></p>
<?php } ?>