How to exclude a snippet from a specific page?

A breadcrump snippet is contained in header.php:

<?php snippet('breadcrump') ?>

However, the breadcrum should not be displayed on the action page, as this page is intended as a landing page.
Is there a function to exclude this page?
(action is not a children page, it’s is in the top level.)

A simple if statement will do the job:

<? if ($page->is(page('action')) === false) {
  snippet('breadcrump');
}
?>
1 Like

Perfect! Thank you! You’ve saved my Sunday.

I can hide the page in the main navigation, but there is also a foreach loop integrated. I have not yet excluded any pages from a snippet. :brain: Learned something new again.