Hi,
I am a junior web-designer with almost no knowledge of PHP, so I apologize in advance if my question will sound dull. I am trying to adapt a one-pager website to Kirby, and I followed the instructions found there:
I followed exactly the same steps but looks like the
<?php foreach($pages->listed() as $section) {
snippet($section->uid(), ['data' => $section]);
} ?>
is not working. In fact I receive no errors but my container div remains empty when I look at the source code. I don’t know where to look at to fix this issue.
Here is my home.php:
<?php snippet('header') ?>
<main>
<div id="container">
<?php foreach($pages->listed() as $section) {
snippet($section->uid(), ['data' => $section]);
} ?>
</div>
</main>
<?php snippet('footer') ?>
Thank you