Skip to content

Kirby 6.0.0

endpush()

Ends the last started stack push

endpush(): void

Examples

Ends the output started with push() and adds it to the stack:

<?php push('footer') ?>
<script src="<?= url('assets/js/gallery.js') ?>" defer></script>
<?php endpush() ?>

Read more in the template stacks guide.