Hi there,
I’m new to Kirby and working on getting my site up and running. I started with the Plain Kit and am using Herd.
I’ve been following this tutorial: https://www.youtube.com/watch?v=op5iP71Bg6w
Here’s the issue:
Whenever I create a projects.php template, the front end doesn’t update as I expect.
To explain further:
Under templates, I have a default.php file:
<main>
<h1><?= $page->title() ?></h1>
<p><?= $page->text() ?></p>
</main>
<body>
<p>test in body</p>
</body>
This works fine. However, even when I visit /projects, I still see the line: test in body.
Then I created a projects.php file with this content:
<main>
<h1><?= $page->title() ?></h1>
<p><?= $page->text() ?></p>
</main>
<body>
<p>Test — why don't I see this on the front end?</p>
</body>
But the front end doesn’t show the element from projects.php. Instead, it seems like default.php is taking over.
I’ve tried deleting the cache folder (I have a cache plugin installed — so that I do not have caching enabled in firefox, or I can delete it with a single click), but the issue persists. When I visit amber-chase.test/projects, the output doesn’t match what’s shown in the tutorial.
In the tutorial, it’s clear that projects.php should override default.php.
Can someone explain what I might be doing wrong or misinterpreting?
Thank you!