Integration Details

Drupal
Integration

Build powerful digital experiences with enterprise-grade content management. Enhance your Drupal site with Accessical's accessibility features for all visitors.

Drupal logo

Drupal Integration

Installation Steps

1
Create a custom module

Create a new folder in /modules/custom/accessical with an accessical.info.yml file containing module details.

2
Add your library definition

Create accessical.libraries.yml and define your JavaScript: accessical-widget: { js: { 'your-script-url': { type: external } } }

3
Attach the library

In your theme's .theme file or module, use hook_page_attachments() to attach the library: $attachments['#attached']['library'][] = 'accessical/accessical-widget';

4
Enable and clear cache

Enable your module via Extend page or Drush, then clear cache to see the Accessical widget on your site.

Installation Code

<script src="https://cdn.accessical.com/widget/main.js"></script>
Get Your Accessical Script