I am looking for a way to toggle between 2 css stylesheets depending on the checkbox selected
This is in order to give the client the option to change background and font color from the panel for each individual page
My code is not currently working, please forgive me as I am a beginner to Kirby. Any suggestions?
Code is referenced from here: Style switcher in panel
Inside the blueprint:
title: About background: label: Background type: checkbox text: Dark Background?
In the section:
<?php if($page->background()->bool()): ?> <?php echo css('/assets/css/dark.css') ?> <?php else : ?> <?php echo css('/assets/css/light.css') ?> <?php endif ?>