开发者

Drupal site. How do I add custom js/css prettify.js/prettify.css for a drupal page?

开发者 https://www.devze.com 2023-04-12 10:56 出处:网络
I want to use 开发者_StackOverflow社区custom css/js.I have moved these to the server.But the drupal page starts with asection.how do I add the custom css/js to my drupal site page.I have admin and jus

I want to use 开发者_StackOverflow社区custom css/js. I have moved these to the server. But the drupal page starts with a section. how do I add the custom css/js to my drupal site page. I have admin and just need to know what to do to get this included on the page. Please send exact steps as I am totally new to drupal. Thanks


"Custom CSS and JavaScript files" module allows to specify two folders, one for CSS and one for JS where the stylesheets and javascripts files are located respectively.
The module creates two sub-folders under your files folder:
files/customcssjs/css
files/customcssjs/js

Indeed, it's depend on your task, what css and js files should do, and adding these in custom module (drupal_add_js, drupal_add_css) or custom theme (info file, preprocess in template.php or directly in page-XXX.tpl.php and so on).

0

精彩评论

暂无评论...
验证码 换一张
取 消