문제

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?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 drupal.stackexchange
scroll top