Universal JavaScript Installation Guide
Overview
Install the AllAccessible widget on any website using a simple JavaScript snippet. This method works on all platforms - custom HTML sites, React, Vue, Angular, Wix, Squarespace, and any other web platform.
Who This Is For
Custom website developers
Sites not using WordPress, Drupal, or Shopify
Platforms like Wix, Squarespace, Weebly
Single-page applications (React, Vue, Angular)
Anyone who can edit their site's HTML
What You'll Learn
How to get your unique widget code
Where to paste the code
How to verify it's working
Platform-specific installation tips
Before You Start
Requirements:
β Access to edit your website's HTML code
β AllAccessible account and Site ID
β Basic understanding of HTML (or ability to follow instructions)
What You'll Need:
Your Account ID (found in AllAccessible dashboard)
Access to your website's HTML code
Time Required: 2-5 minutes
Step 1: Get Your Installation Code
Option A: From Your Dashboard
Log in to app.allaccessible.org
Click on Sites in the left menu
Find your site in the list
Click the Installation or Get Code button
Copy the JavaScript snippet
π· AllAccessible dashboard showing installation code
Option B: Manual Code Format
If you can't access the dashboard, use this format:
<script>
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "YOUR_ACCOUNT_ID");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js");
d.head.appendChild(s);
})(document)
</script>
Replace YOUR_ACCOUNT_ID with your actual Account ID (found in dashboard under Sites)
Example:
<script>
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "abc123xyz");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/abc123xyz.js");
d.head.appendChild(s);
})(document)
</script>
Step 2: Choose Where to Place the Code
You have two options:
Option A: Before </body> Tag (Recommended)
Best for: Most websites, better performance
Place the code right before the closing </body> tag:
<html>
<head>
<title>My Website</title>
</head>
<body>
<!-- Your website content --> <!-- AllAccessible Widget - Add here -->
<script>
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "YOUR_ACCOUNT_ID");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js");
d.head.appendChild(s);
})(document)
</script>
</body>
</html>
Why this is recommended:
Loads after page content (faster perceived load)
Doesn't block page rendering
Industry best practice
Option B: In <head> Section
Best for: Sites where footer editing isn't possible
Place in the <head> section:
<html>
<head>
<title>My Website</title>
<script>
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "YOUR_ACCOUNT_ID");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js");
d.head.appendChild(s);
})(document)
</script>
</head>
<body>
<!-- Your website content -->
</body>
</html>
Step 3: Install on Your Platform
Choose your platform for specific instructions:
Custom HTML / Static Sites
Open your HTML file in a text editor
Find the
</body>tag (usually at the bottom)Paste the script right before it
Save the file
Upload to your web server
Visit your website to test
Wix
Method 1: Custom Code (Recommended)
Log in to Wix Editor
Go to Settings β Tracking & Analytics
Click + New Tool β Custom
Name it "AllAccessible"
Paste your script code
Set to load on All Pages
Choose Body - End position
Click Apply
π· Wix custom code settings
Method 2: Embed Element
In Wix Editor, click Add (+) button
Select Embed β Custom Embeds β Embed a Widget
Paste your script code
Position the embed element anywhere (it's invisible)
Publish your site
Squarespace
Log in to Squarespace
Go to Settings β Advanced β Code Injection
Paste your script in the Footer box
Click Save
Visit your site to test
π· Squarespace code injection screen
Note: Code Injection is available on Business plans and higher.
Weebly
Log in to Weebly Editor
Go to Settings β SEO
Scroll to Footer Code
Paste your script
Click Save
Publish your site
Webflow
Open your Webflow project
Go to Project Settings β Custom Code
Paste script in Footer Code section
Click Save Changes
Publish your site
GoDaddy Website Builder
Log in to GoDaddy Website Builder
Click Settings β SEO
Find Custom Code section
Paste script in Footer field
Click Done and Publish
Single Page Applications (React, Vue, Angular)
React
Option 1: Public index.html (Easiest)
Add to public/index.html:
<body>
<div id="root"></div>
<script>
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "YOUR_ACCOUNT_ID");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js");
d.head.appendChild(s);
})(document)
</script>
</body>
Option 2: Component Method
import { useEffect } from 'react';function App() {
useEffect(() => {
const script = document.createElement('script');
script.setAttribute('data-accessible-account-id', 'YOUR_ACCOUNT_ID');
script.setAttribute('id', 'allAccessibleWidget');
script.async = true;
script.src = 'https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js';
document.head.appendChild(script); return () => {
// Cleanup if needed
const existingScript = document.getElementById('allAccessibleWidget');
if (existingScript) {
existingScript.remove();
}
};
}, []); return (
// Your app
);
}
Vue
Add to public/index.html:
<body>
<div id="app"></div>
<script>
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "YOUR_ACCOUNT_ID");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js");
d.head.appendChild(s);
})(document)
</script>
</body>
Angular
Add to src/index.html:
<body>
<app-root></app-root>
<script>
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "YOUR_ACCOUNT_ID");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js");
d.head.appendChild(s);
})(document)
</script>
</body>
Next.js
Add to pages/_document.js:
import { Html, Head, Main, NextScript } from 'next/document'export default function Document() {
return (
<Html>
<Head />
<body>
<Main />
<NextScript />
<script dangerouslySetInnerHTML={{__html: `
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "YOUR_ACCOUNT_ID");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js");
d.head.appendChild(s);
})(document)
`}} />
</body>
</Html>
)
}
Step 4: Verify Installation
Quick Test
Visit your website (front-end, not editor/admin)
Look for the accessibility button (usually bottom-right corner)
Click the button to open the widget
Try a feature (like increasing text size)
π· Accessibility widget button on website
If You Don't See the Widget
Check 1: View Page Source
Right-click on your page β View Page Source
Search for "allaccessible" (Ctrl+F / Cmd+F)
You should see your script tag
If it's there: Clear browser cache and try again
βIf it's not there: Code wasn't saved properly, try reinstalling
Check 2: Browser Console
Right-click β Inspect β Console tab
Look for JavaScript errors
Common issues:
Wrong Account ID
Domain not registered in dashboard
Ad blocker interfering
Check 3: Network Tab
Right-click β Inspect β Network tab
Refresh the page
Look for your widget file (
YOUR_ACCOUNT_ID.js)Should show status 200 (OK)
Advanced Configuration (Optional)
Custom Widget Configuration
You can customize widget behavior with JavaScript:
<script>
// Configure before widget loads
window.AllAccessibleConfig = {
position: 'bottom-right', // bottom-left, top-right, top-left
offset: { x: 20, y: 20 }, // Distance from corner (pixels)
language: 'en', // Default language
autoOpen: false, // Don't auto-open on first visit
hideOnMobile: false // Show on mobile devices
};
</script><!-- Then load widget -->
<script>
(function(d) {
var s = d.createElement("script");
s.setAttribute("data-accessible-account-id", "YOUR_ACCOUNT_ID");
s.setAttribute("id", "allAccessibleWidget");
s.async = true;
s.setAttribute("src", "https://api.allaccessible.org/widget/YOUR_ACCOUNT_ID.js");
d.head.appendChild(s);
})(document)
</script>
Note: Most customization should be done in the AllAccessible dashboard, not in code.
Common Installation Issues
Issue: Widget Doesn't Appear
Possible Causes:
Wrong Account ID - Double-check your ID
Domain not registered - Add your domain in AllAccessible dashboard
Cache - Clear browser and server cache
Ad blocker - Disable and test
HTTPS required - Widget won't load on HTTP sites
Solutions:
Verify Account ID in dashboard
Add your exact domain under Sites β Subdomains
Hard refresh: Ctrl+Shift+R (Windows) or Cmd+Shift+R (Mac)
Try incognito/private browsing mode
Ensure your site uses HTTPS
Issue: Widget Appears But Features Don't Work
Possible Causes:
JavaScript conflict with another script
Content Security Policy blocking the widget
Subscription issue (premium features on free plan)
Solutions:
Check browser console for errors
See CSP configuration guide below
Verify your subscription in dashboard
Issue: Slow Loading
Possible Causes:
Script in
<head>instead of before</body>Too many scripts loading simultaneously
Solutions:
Move script to before
</body>tagUse async loading (see below)
Content Security Policy (CSP) Configuration
If your site uses CSP headers, add these directives:
Content-Security-Policy: script-src 'self' https://app.allaccessible.org; connect-src 'self' https://app.allaccessible.org; frame-src 'self' https://app.allaccessible.org;
Where to add:
.htaccess (Apache)
nginx.conf (Nginx)
HTML meta tag (fallback)
HTML Meta Tag Method:
<meta http-equiv="Content-Security-Policy"
content="script-src 'self' https://app.allaccessible.org;">
Async Loading (Advanced)
The AllAccessible installation code already includes async loading by default:
s.async = true;
This ensures the widget loads without blocking your page. No additional configuration needed!
Note: The widget script is optimized for performance and won't slow down your site.
Testing Checklist
After installation, verify these items:
Widget button appears on homepage
Widget button appears on internal pages
Widget button appears on mobile devices
Clicking button opens the widget
Can increase text size
Can change color contrast
Widget persists on page navigation
No JavaScript console errors
Page load speed not affected
Troubleshooting Tools
Check Domain Registration
Go to app.allaccessible.org
Click Sites
Verify your domain matches exactly (www vs non-www matters!)
Check Subdomains section for all your URLs
Test Different Browsers
β Chrome
β Firefox
β Safari
β Edge
β Mobile browsers (iOS Safari, Chrome Mobile)
Clear All Caches
Browser cache: Hard refresh or incognito mode
Server cache: Contact hosting support or clear via control panel
CDN cache: If using Cloudflare, purge cache
Plugin cache: If using caching plugins (WP Rocket, etc.), clear those too
Video Tutorial
Watch our step-by-step manual installation guide:
[VIDEO PLACEHOLDER: Manual JavaScript installation walkthrough]
Platform-Specific Video Tutorials
Frequently Asked Questions
Q: Do I need to add the code to every page?
A: No! Add it once to your template/layout file. It will then appear on all pages.
Q: Will this slow down my website?
A: No. The widget loads asynchronously and is optimized for performance. Typical impact: less than 0.1 seconds.
Q: Can I customize the widget appearance?
A: Yes! Customize colors, position, and branding in your AllAccessible dashboard, not in the code.
Q: What if I have multiple domains?
A: Each domain needs its own Account ID, but all can use the same AllAccessible account.
Q: Can I use one code snippet for subdomains?
A: Yes! One Account ID works for your main domain and all subdomains (blog.yoursite.com, shop.yoursite.com, etc.)
Q: Is HTTPS required?
A: Yes. The widget will not load on non-HTTPS sites for security reasons.
Getting Help
Can't Get It Working?
Support Options:
π§ Email: [email protected]
π¬ Live Chat: Available on our website
π Knowledge Base: support.allaccessible.org
π₯ Video Tutorials: YouTube Channel
For Priority Support:
Upgrade to Professional plan for faster response times
Include: Your Account ID, domain name, and browser console errors
Related Articles
WordPress Plugin Installation - For WordPress users
Drupal Module Installation - For Drupal users
Verifying Your Installation - Testing guide
Installation Troubleshooting - Common issues
Customizing Widget Position - Appearance guide
Last Updated: October 2025
βInstallation Method: JavaScript Embed
βDifficulty: Intermediate
