When enabled ShortPoint Accessibility will be applied to all sites within your SharePoint tenancy, whether it has ShortPoint installed or not. In this article, we will provide the steps to disable the accessibility widget on sites where you do not want it to appear.
TABLE OF CONTENTS
Prerequisites
- You have the latest ShortPoint SPFx version installed for your environment
- You are a ShortPoint Designer with an active license
- You have enabled ShortPoint Accessibility for your SharePoint tenancy.
Step-by-step Tutorial
Follow these steps to disable the ShortPoint Accessibility on a SharePoint site:
Step 1: Launch ShortPoint Theme Builder
- Open a page within the SharePoint site collection where you do not want the accessibility widget to appear.
- Access ShortPoint Theme Builder in two ways: [1] Click the ShortPoint shortcut on your command bar and select Theme Builder, or [2] Navigate to the ShortPoint Dashboard from Site Contents then select Theme Builder.
Step 2: Navigate to the Theme Builder Utilities options
- On the Theme Builder main menu, scroll down and select Utilities.
- Open Custom Javascript.
Step 3: Copy and paste Javascript code
We will be using Javascript code to prevent the ShortPoint Accessibility widget from loading on the site. Here is the code:
// Disable accessibility widget on this site localStorage.setItem("spDisableAccessibilityOn_" + window.shortpoint_spPageContextInfo.siteAbsoluteUrl, 1);
To enable it again you just need to change "setItem" to "removeItem" in the code snippet.
localStorage.removeItem("spDisableAccessibilityOn_" + window.shortpoint_spPageContextInfo.siteAbsoluteUrl, 1);
- Copy the code and paste it into the custom Javascript field.
- Hit Apply.
Step 4: Publish changes
- Once done, hit Publish.
That’s it! The ShortPoint Accessibility widget will no longer appear on all pages of the Site Collection.
Related articles:
- Introducing ShortPoint Accessibility
- Getting Started: Setting Up ShortPoint Accessibility
- ShortPoint Accessibility FAQs