Hi everyone,
I am new in kirby, I added the index.css link to the default.php page. When i go to the chrome live view the changes I made in index.css do not appear, and the console print this error message: “Failed to load resource: the server responded with a status of 500 (Internal Server Error) index.css:”
What could be the problem?
Any help would be appreciated
Thanks
Hey @chris.mion, welcome to our community.
Where exactly did you add what? Please provide your code. Also, where did you put that file?
The easiest way to include a stylesheet is using Kirby’s css()
helper:
Assuming your index file lives in /assets/css
, include this in within the head
tags:
<?= css(['assets/css/index.css']) ?>
1 Like