How to install the accessibility widget in Drupal
The DockAccess Accessibility Widget module (assist_for_wcag, formerly Assist For WCAG) adds the accessibility widget to every page of your Drupal website (10.3 or later, 11). Once connected to your DockAccess account, it shows in the administration whether the widget works, your plan and how many widget views were used this month. The look of the widget, its accessibility options and the accessibility statement are set in your DockAccess account, on the Accessibility widget tab of the site.
Installing the module
Step 1: Add the site and copy its token
You can also find the token of every site later in “My sites”, under the address of the site, with a copy icon.
Step 2: Install the module
Composer is the recommended way to install Drupal modules. In the root directory of your Drupal installation, run:
Then enable the module in Extend (tick DockAccess Accessibility Widget and click Install) or with Drush:
Step 3: Connect the website with your DockAccess account
Go to Configuration → User interface → DockAccess Accessibility Widget. Paste the site token, enter the e-mail address (or user name) and the password of your DockAccess account, then click Connect.

DockAccess checks that the token belongs to your account and that the address of the website is one of the site's domains. The password is used only for this one connection and the module does not store it. The account must have a confirmed e-mail address.
If the module says that the website address is not one of the site's domains, add it in the site settings on the My sites list and connect again.
Step 4: Check that the widget works
After connecting, the settings show whether the widget works on your website (it shows as working after the first visits), your plan, the widget views this month counted together for all sites of the account, and links to your DockAccess account.

The module refreshes the status once a day through cron. The Refresh the status button gets it straight away, and Reports → Status report shows it too. Finally, open your website in a browser and check that the accessibility widget button is visible.
Updating from version 1.x
Update the module with Composer and run the database updates (drush updb). The widget keeps working with the token saved before. Connect the website with your account (step 3) to see its status and plan.
Disconnecting
The Disconnect link in the settings ends the connection with your DockAccess account, after a confirmation. The widget keeps working on the website. To see its status again, connect the website again. Uninstalling the module disconnects the website as well.
The module sends the site token, the address of the website and version numbers to dockaccess.org when you connect, refresh the status or disconnect, and once a day from cron. The widget script is loaded from dockaccess.org.
Related posts
- How to install the accessibility widget in Joomla
- Accessibility widget script
- How to install the accessibility widget in MODX
- How to install the accessibility widget in Prestashop
- How to install the accessibility widget in Wordpress
Still looking for answers?
Ask our experts using online chat
Download for Google Chrome
Download for Edge
Download for Firefox