How to Install the ADA Okay! Widget on Any Website

The ADA Okay! widget is a single script. You add one line of code to your website and a blue accessibility button appears at the edge of every page. This guide walks through the install and the checks to run afterwards.

Step 1: copy your code

Go to the free widget page, choose the language, the side of the screen and the button colour, and copy the code. It looks like this:

<script src="https://www.adaokay.com/widget/adaokay.js" data-lang="en" data-position="left" defer></script>

There is no sign-up step and no licence key. The same code works on any number of pages.

Step 2: paste it into your website

The code goes just before the closing </body> tag of every page. Where you do that depends on your platform:

  • Plain HTML: paste it into your shared footer file or into each page.
  • WordPress and WooCommerce: use a header and footer code plugin and choose the footer location, or add it to your child theme's footer file.
  • Shopify: Online Store, Themes, Edit code, then theme.liquid.
  • Wix: Settings, Custom Code, Add Custom Code, placed at "Body - end" on all pages.
  • Squarespace: Settings, Advanced, Code Injection, Footer.
  • Webflow: Site settings, Custom code, Footer code, then publish.
  • Google Tag Manager: a Custom HTML tag on the All Pages trigger, using the tag manager version of the code.

The widget page has fuller instructions for each platform, plus Joomla, Drupal, BigCommerce, Weebly and Blogger.

Step 3: test it

  1. Reload your website. The button should sit at the edge of the screen. If it does not, clear your site cache and check that the code is inside the body.
  2. Press Alt + Shift + A. The panel should open, and Escape should close it.
  3. Switch on each tool once: text reader, keyboard navigation, the three contrast modes, font size and the highlighters.
  4. Reload the page. Your choices should still be applied, because the widget remembers them in the browser.
  5. Choose "Reset all" and confirm the page returns to normal.

Settings you can change

AttributeValuesDefault
data-langen, es, de, fr, nl, ru, it, pt, plThe language of your page, or English
data-positionleft, rightleft
data-offsetA height such as 20%, 50% or 80%80%
data-colorA hex colour such as #1876c9#1876c9
data-statementThe address of your accessibility statementNone

If your website has a content security policy

Add https://www.adaokay.com to the script-src directive. The widget loads no other files, fonts or images, and it makes no network requests after it loads.

After the install

The widget gives your visitors tools. It does not change your code. Run the keyboard checklist, review your alt text and read what widgets can and cannot do to plan the rest of the work.

Thaddeus Okonjo-Reyes, Front-end developer and widget maintainer
Thaddeus has built front ends for retailers and local councils since 2011 and tests everything with a keyboard and a screen reader before it ships. He maintains the ADA Okay! widget and writes the hands-on technical guides.

Get your ADA Widget today - for FREE!

Text reader, keyboard navigation, contrast modes and more with one line of code.

Get the free widget

Keep reading

What Accessibility Widgets Can and Cannot Do

WCAG 2.1 and the Three Levels: A, AA and AAA