Header injecting?

You can use the auto loader function:

<?php echo css('@auto') ?>

Template specific css files must be located in /assets/css/templates and named like the template.

http://getkirby.com/docs/cheatsheet/helpers/css

The same works for javascript files.

Have a look at this post for other methods: How to call a javascript only for specific page/template

1 Like