Skip to main content
4 events
when toggle format what by license comment
Jul 20, 2018 at 18:08 comment added Robin Schambach You can wrap it around an {% if %} condition if you want, but usually you want to register the file where you need it. So when you include a template that requires your css file you'll register it. You can execute the line as many times as you want, Craft won't mess around and only insert the style tag once in your header
Jul 20, 2018 at 18:05 comment added Lindsey D @dawn Robin's answer is perfectly valid, and is exactly the right answer for many scenarios. If you'd like other options, please expand on your original question.
Jul 20, 2018 at 17:16 comment added dawn yo there isn't something like {if this page} and then print the tag? I believe that's easier.
Jul 20, 2018 at 16:29 history answered Robin Schambach CC BY-SA 4.0