Removing Breadcrumbs From Home

CLASSIC This mod is a simple way of removing the breadcrumbs trail from the Home page of your sNews-powered website. Because, having a crumb on the start page is kind of redundant – right?

The How

Open the index.php file that came in the sNews download package and find the following bit:

<div id="crumbs"><?php breadcrumbs(); ?></div>

This is the function call that brings in the breadcrumb trail on your pages. What we need to do now is to change that bit so that it is not called in on the home page. Like so:

The Code

<?php if(!empty($categorySEF)) { ?>
<div id="crumbs"><?php breadcrumbs(); ?></div>
<?php } ?>

And that is really all we need to do. Well, we need to save the changes of course. :P  But code-wise that’s all that is required. When you now view your website you will see that there is no breadcrumb trail at all, not even an empty <div id="crumbs"> loitering about, on the Home page, but there is indeed a nice breadcrumb trail on all other pages. Mission accomplished.

Comments

1

I was wondering how to do this, but though I might work on it in the future!

Now I can scratch this off my list with this easy fix! Thank you!

, 3 years ago

2

have been used this trick for modifiing my home page code, thank you for this one too!

jordi11, 2 years ago

3

used this trick, very useful for making your own home page coding...

jordi11, 2 years ago

Commenting is off.

Popular stories


Categories

Subcategories


Pages