We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Custom css and JS per template

Avatar photoBob

You can load your script/CSS for any post template by using the following condition:

{{#checkIf template '==' "MYTEMPLATE"}}    
    <script defer src="{{js "your-scripts.js"}}"></script>
    <link rel="stylesheet" href="{{css "your-css.css" }}">