WordPress accessibility plugin installation

Wordpress

Plugin installation

Step 1: Install the plug-in

You can easily install the plugin using the WordPress plugin repository.
In the WordPress admin panel, go to the “Plugins” tab in the left menu, then click “Add New” at the top of the page.
In the search box, type in “Assist For WCAG”, and when you find the plugin, click “Install” and then “Enable.”
After activation, in the left menu, scroll down and select “Accessibility.”

Step 2: Register your site and obtain a token

If you are installing the plugin for the first time, register using Google, Facebook or use your own email address and password. wcag register form After creating an account, go to the “My Sites” tab, and then click the button “Add new”. wcag my sites In the form for adding a new page, enter the addresses of the websites where you want to apply the token. If your site runs on a domain such as example .com and e.g. www. example.com then it is necessary to add both addresses. Read more about this in the documentation. Finally, click the "Save" button and copy the generated token. wcag copy token

Step 3: Activate the accessibility widget

Once you have the token, go back to your WordPress dashboard, go to the Assist For WCAG plugin configuration section and enter the copied token in the appropriate field and save the changes.

Step 4: Preview the site

After installation and configuration, test the widget on your site to make sure it works properly and is WCAG compliant.


Manual installation of accessibility widget on WordPress website

If you prefer to manually install the DockWCAG widget on your website, follow the steps below:

Step 1: Register your site and obtain a token

If you are installing the plugin for the first time, register using Google, Facebook or use your own email address and password. wcag register form After creating an account, go to the “My Sites” tab, and then click the button “Add new”. wcag my sites In the form for adding a new page, enter the addresses of the websites where you want to apply the token. If your site runs on a domain such as example .com and e.g. www. example.com then it is necessary to add both addresses. Read more about this in the documentation. Finally, click the "Save" button and copy the generated token. wcag copy token

Step 2: Embed the code in WordPress

To install the widget, you need to add the appropriate script to your site’s HTML code. Remember not to remove any elements from the existing code, as this could affect the performance of the site.

Copy the code below:

<script>
    (function (d, s, t) {
        var f = d.getElementsByTagName(s)[0],
            j = d.createElement(s),
            a = new Date().getTime();
        j.async = true;
        j.src = '//wcag.dock.codes/accessibility/' + t + '/start.js?t=' + a;
        f.parentNode.insertBefore(j, f);
    })(document, 'script', '_TOKEN_');
</script>

For more on how to configure the widget, see the documentation.

Go to the “Appearance” tab in the left menu of the WordPress admin panel, and then select “Theme File Editor”.
In the “Theme Files” section , find the “header.php” file .

Wordpress header edit

Insert the script just before the closing tag </head>. Paste code and replace _TOKEN_ with your unique token, which was generated in the previous step. Finally, click “Update file.”

Step 3: Preview the site

After adding the script, test your site to make sure the widget is properly installed and works as expected. Check all the widget’s functions to verify that the installation was successful.

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.