Forum

Thread tagged as: Question, Runway

Breadcrumb exclude home page?

How can exclude the home page from the breadcrumb trail?

Martin Elliff

Martin Elliff 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show us your code?

Simon Clay

Simon Clay 127 points

I think using the standard:


<?php perch_pages_breadcrumbs(array( 'template' => 'breadcrumbs.html', )); ?>

does not output Home as part of the breadcrumbs.

The home page is part of the breadcrumb in the standard format as that is what I am using. The only way I have found to remove it is to hide the home page from the navigation but that means it wont appear in the site map or other navigation, so not a workaround as it causes other problems.

I am using the files that come with Runway. No changes. Out of the box (breadcrumbs.html). <?php perch_pages_breadcrumbs(); ?>

Simon Clay

Simon Clay 127 points

That is working for 3 Perch sites I tested it on today. Perhaps it's to do with Runway routing. I'm not sure about that.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you nested pages under your home page?

Yes. The sections are the level after the home page. Is that wrong?

Simon Clay

Simon Clay 127 points

I would normally have the sections on the top level, with the structure like this

  • Home

  • Sections

  • About

  • Contact

rather than nested under home:

  • Home

    • Sections
    • About
    • Contact

Okay I will do that, although the site map will be need to exclude the home page and manually be inserted as the root.