Build powerful digital experiences with enterprise-grade content management. Enhance your Drupal site with Accessical's accessibility features for all visitors.
Create a new folder in /modules/custom/accessical with an accessical.info.yml file containing module details.
Create accessical.libraries.yml and define your JavaScript: accessical-widget: { js: { 'your-script-url': { type: external } } }
In your theme's .theme file or module, use hook_page_attachments() to attach the library: $attachments['#attached']['library'][] = 'accessical/accessical-widget';
Enable your module via Extend page or Drush, then clear cache to see the Accessical widget on your site.