Skip to content

Kirby 4.1.2

$page->isErrorPage()

Checks if the page is the error page

$page->isErrorPage(): bool

Return type

bool

Parent class

Kirby\Cms\Page

Example

A custom css file for the error page

<?php if($page->isErrorPage()): ?>
<?= css('assets/css/error.css') ?>
<?php endif ?>