CSS and JS files in folders not working
Hi there, I'm building a custom template and am trying to point link css and js files within folders but they are not being picked up.
I've triple-checked the link e.g href="css/main.css"
but it doesn't work. It does work when I delete the "css/"
and move the file to the same directory as the rest of the files. Am I missing something? I'm wondering whether it's a limitation of the platform.
Thanks in advance!
Is the issue possibly one of relative paths vs. absolute paths? The following might work (note the leading slash):
href="/css/main.css"
This isn't a limitation of the platform, Blot is capable of serving static files. One other method to determine the working path to the file, is to navigate to the file on your blog's dashboard then click the link under the 'Where' section for the file.
Answered 2 years ago ยท Edit answer