Exclude home page in breadcrumb

Hi,

This code:

  <?php foreach($site->breadcrumb() as $crumb): ?>
    <li<?php e($crumb->isActive(), ' aria-current="location"') ?>><a href="<?= $crumb->url() ?>"><?= $crumb->title()->html() ?></a></li>
    <?php endforeach; ?>

outputs: Home / Soaps / Green Soap

I want it to output: Soaps / Green Soap How can I accomplish this?

1 Like

Many thanks, it worked :slight_smile:

A post was split to a new topic: Problem with colons in text file

I think I also asked you this before: Please don’t add new questions to completely different topics. I’m moving this to a new topic now.