$field->isTrue() Converts the field value into a proper boolean kirby/config/methods.php#L47 $field->isTrue(): bool Return type bool Example <?php if ($page->cover()->isTrue()): ?> <figure class="cover"> <!-- Your code here --> </figure> <?php endif ?>