I am new to Drupal. I have knowledge of JavaScript and CSS. I googled, but I did not find an explanation on how to add JavaScript to my site. How can I add JavaScript and CSS to my site? Are there any step-by-step tutorials?
The Managing JavaScript in Drupal 7 guide provides the information to add JavaScript to Drupal. The techniques presented there apply to both themes and (custom) modules:
Note that Drupal already include jQuery, jQuery UI and a bunch of other libraries so you don't, and shouldn't, add them yourself. Instead you should use The Working with CSS guide provides the information to add CSS to Drupal. Again, the techniques presented there apply to both themes and (custom) modules. With an exception: addition of style sheets from an
|
|||||||||
|
You can place your js file in your theme folder and add this js file to drupal by using |
||||
|