Discussion Forum | Board Infinity

Can we add functionalities in a drupal8 website by coding? If, yes then with which language and does that have only a specific file path?

Can we add functionalities in a drupal8 website by coding? If, yes then with which language and does that have only a specific file path?

We can add stylesheets (CSS) and JavaScript (JS) to the Drupal module. The general steps for loading CSS/JS are:

  1. Save the CSS or JS to a file.
  2. Define a “library”, which can contain both CSS and JS files.
  3. Attach” the library to a render array in a hook.