Question

I'm currently building a custom theme from the ground up on drupal on localhost.

At the moment I've managed to add my theme and run my custom templates succesfully. However I can't get it to pick up my CSS or JS files.

These were the lines in my .info file

stylesheets[all][] = /css/main.css
scripts[] = javascript/javascript.js

However I got an error in the console saying:

'GET http://localhost/drupal/css/main.css 404 (Not Found)'

So I modified the path of the css and js files to something like this:

stylesheets[all][] = sites/all/themes/THEMENAME/css/main.css

Yet it still can't find it. I'm not sure what's going on. Has the .info file been cached?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top